mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
These tests were using validateEndpointsPortsOrFail() not because they cared about ports, but just because it was there, or in some cases because they needed to wait for one pod to exit and a different pod to start, which can't be done with framework.WaitForServiceEndpointsNum() (or e2eendpointslice.WaitForEndpointCount) without racing. Update these tests using the new e2eendpointslice.WaitForEndpointPods, which can wait for specific expected pods. (This also means these tests now only watch EndpointSlices, rather than watching both Endpoints and EndpointSlices, which is fine, because none of them are doing tricky things that actually require making assertions about the exact contents of the Endpoints/EndpointSlices. They just want to know when the controller has updated things to point to the expected pods.)