Merge pull request #3078 from ipedrazas/feat/add_http_port

feat(tiller): exposes port 44135 in tiller deployment
pull/3079/head
Matthew Fisher 7 years ago committed by GitHub
commit fd33003065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -168,6 +168,7 @@ func generateDeployment(opts *Options) (*v1beta1.Deployment, error) {
ImagePullPolicy: opts.pullPolicy(),
Ports: []v1.ContainerPort{
{ContainerPort: 44134, Name: "tiller"},
{ContainerPort: 44135, Name: "http"},
},
Env: []v1.EnvVar{
{Name: "TILLER_NAMESPACE", Value: opts.Namespace},

@ -207,6 +207,10 @@ func TestInstall(t *testing.T) {
if i != image {
t.Errorf("expected image = '%s', got '%s'", image, i)
}
ports := len(obj.Spec.Template.Spec.Containers[0].Ports)
if ports != 2 {
t.Errorf("expected ports = 2, got '%d'", ports)
}
return true, obj, nil
})
fc.AddReactor("create", "services", func(action testcore.Action) (bool, runtime.Object, error) {

Loading…
Cancel
Save