mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
test/integration/endpoints: improve docs for TestEndpointWithTerminatingPod
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
This commit is contained in:
parent
0aa1b3b0bf
commit
2878e472ad
@ -156,10 +156,11 @@ func TestEndpointUpdates(t *testing.T) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestEndpointWithTerminatingPod tests that terminating pods are NOT included in Endpoints
|
// TestEndpointWithTerminatingPod tests that terminating pods are NOT included in Endpoints.
|
||||||
// DO NOT update this test to include terminating endpoints. This test ensures that Endpoints
|
// This capability is only available in the newer EndpointSlice API and there are no plans to
|
||||||
// continue to exclude terminating endpoints for compatibility reasons. Only EndpointSlice
|
// include it for Endpoints. This test can be removed in the future if we decide to include
|
||||||
// will contain terminating endpoints going forward.
|
// terminating endpoints in Endpoints, but in the mean time this test ensures we do not change
|
||||||
|
// this behavior accidentally.
|
||||||
func TestEndpointWithTerminatingPod(t *testing.T) {
|
func TestEndpointWithTerminatingPod(t *testing.T) {
|
||||||
controlPlaneConfig := framework.NewIntegrationTestControlPlaneConfig()
|
controlPlaneConfig := framework.NewIntegrationTestControlPlaneConfig()
|
||||||
_, server, closeFn := framework.RunAnAPIServer(controlPlaneConfig)
|
_, server, closeFn := framework.RunAnAPIServer(controlPlaneConfig)
|
||||||
|
Loading…
Reference in New Issue
Block a user