Clear ClusterIP in the local service before comparison.

pull/6/head
Matt Liggett 2016-06-15 13:20:05 -07:00
parent 6209b1b60c
commit adbd4d8029
1 changed files with 5 additions and 0 deletions

View File

@ -214,6 +214,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))
}