mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +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
|
||||
// DO NOT update this test to include terminating endpoints. This test ensures that Endpoints
|
||||
// continue to exclude terminating endpoints for compatibility reasons. Only EndpointSlice
|
||||
// will contain terminating endpoints going forward.
|
||||
// TestEndpointWithTerminatingPod tests that terminating pods are NOT included in Endpoints.
|
||||
// This capability is only available in the newer EndpointSlice API and there are no plans to
|
||||
// include it for Endpoints. This test can be removed in the future if we decide to include
|
||||
// terminating endpoints in Endpoints, but in the mean time this test ensures we do not change
|
||||
// this behavior accidentally.
|
||||
func TestEndpointWithTerminatingPod(t *testing.T) {
|
||||
controlPlaneConfig := framework.NewIntegrationTestControlPlaneConfig()
|
||||
_, server, closeFn := framework.RunAnAPIServer(controlPlaneConfig)
|
||||
|
Loading…
Reference in New Issue
Block a user