mirror of https://github.com/k3s-io/k3s
Clear ClusterIP in the local service before comparison.
parent
6209b1b60c
commit
adbd4d8029
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue