mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
Clear ClusterIP in the local service before comparison.
This commit is contained in:
parent
6209b1b60c
commit
adbd4d8029
@ -214,6 +214,11 @@ func waitForFederatedServiceShard(cs *release_1_3.Clientset, namespace string, s
|
|||||||
if numSvcs > 0 && service != nil {
|
if numSvcs > 0 && service != nil {
|
||||||
// Renaming for clarity/readability
|
// Renaming for clarity/readability
|
||||||
clSvc := clSvcList.Items[0]
|
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.Name).To(Equal(service.Name))
|
||||||
Expect(clSvc.Spec).To(Equal(service.Spec))
|
Expect(clSvc.Spec).To(Equal(service.Spec))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user