mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Merge pull request #11030 from justinsb/e2e_aws_lb_changes_on_service_change
e2e: For AWS, tolerate an LB change when the service changes
This commit is contained in:
commit
b27f99bd43
@ -457,8 +457,20 @@ var _ = Describe("Services", func() {
|
|||||||
Failf("got unexpected len(Status.LoadBalancer.Ingresss) for NodePort service: %v", service)
|
Failf("got unexpected len(Status.LoadBalancer.Ingresss) for NodePort service: %v", service)
|
||||||
}
|
}
|
||||||
ingress2 := service.Status.LoadBalancer.Ingress[0]
|
ingress2 := service.Status.LoadBalancer.Ingress[0]
|
||||||
// TODO: This is a problem on AWS; we can't just always be changing the LB
|
|
||||||
|
// TODO: Fix the issue here: https://github.com/GoogleCloudPlatform/kubernetes/issues/11002
|
||||||
|
if providerIs("aws") {
|
||||||
|
// TODO: Make this less of a hack (or fix the underlying bug)
|
||||||
|
time.Sleep(time.Second * 120)
|
||||||
|
service, err = waitForLoadBalancerIngress(c, serviceName, ns)
|
||||||
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
|
// We don't want the ingress point to change, but we should verify that the new ingress point still works
|
||||||
|
ingress2 = service.Status.LoadBalancer.Ingress[0]
|
||||||
|
Expect(ingress1).NotTo(Equal(ingress2))
|
||||||
|
} else {
|
||||||
Expect(ingress1).To(Equal(ingress2))
|
Expect(ingress1).To(Equal(ingress2))
|
||||||
|
}
|
||||||
|
|
||||||
By("hitting the pod through the service's updated NodePort")
|
By("hitting the pod through the service's updated NodePort")
|
||||||
testReachable(ip, nodePort2)
|
testReachable(ip, nodePort2)
|
||||||
|
Loading…
Reference in New Issue
Block a user