e2e fix: set NodePort back to 0, when changing from NodePort -> ClusterIP

This commit is contained in:
Justin Santa Barbara 2015-05-22 22:20:29 -04:00
parent 4292866c03
commit c68e4163fe

View File

@ -488,6 +488,7 @@ var _ = Describe("Services", func() {
By("changing service " + serviceName + " back to type=ClusterIP")
service.Spec.Type = api.ServiceTypeClusterIP
service.Spec.Ports[0].NodePort = 0
service, err = c.Services(ns).Update(service)
Expect(err).NotTo(HaveOccurred())