test/integration/endpoints: improve docs for TestEndpointWithTerminatingPod

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
This commit is contained in:
Andrew Sy Kim 2021-07-09 16:45:23 -04:00
parent 0aa1b3b0bf
commit 2878e472ad

View File

@ -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)