Merge pull request #27480 from mml/fed-service-clusterip

Automatic merge from submit-queue

Clear ClusterIP in the local service before comparison.

For #26762
This commit is contained in:
k8s-merge-robot 2016-06-16 17:09:56 -07:00 committed by GitHub
commit b41405ed22

View File

@ -220,6 +220,11 @@ func waitForFederatedServiceShard(cs *release_1_3.Clientset, namespace string, s
if numSvcs > 0 && service != nil {
// Renaming for clarity/readability
clSvc := clSvcList.Items[0]
// The federation service has no cluster IP. Clear any cluster IP before
// comparison.
clSvc.Spec.ClusterIP = ""
Expect(clSvc.Name).To(Equal(service.Name))
Expect(clSvc.Spec).To(Equal(service.Spec))
}