From abc9a9f8369c220ee3a1de2e1917edef3d7d680e Mon Sep 17 00:00:00 2001 From: Ted Yu Date: Thu, 24 Oct 2019 16:07:02 -0700 Subject: [PATCH] Add note on the applicability of --grace-period --- staging/src/k8s.io/kubectl/pkg/cmd/delete/delete.go | 1 + 1 file changed, 1 insertion(+) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/delete/delete.go b/staging/src/k8s.io/kubectl/pkg/cmd/delete/delete.go index bb443ed9a3a..feb751bc6e2 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/delete/delete.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/delete/delete.go @@ -54,6 +54,7 @@ var ( hosting a pod is down or cannot reach the API server, termination may take significantly longer than the grace period. To force delete a resource, you must pass a grace period of 0 and specify the --force flag. + Note: only a subset of resources support graceful deletion. In absence of the support, --grace-period is ignored. IMPORTANT: Force deleting pods does not wait for confirmation that the pod's processes have been terminated, which can leave those processes running until the node detects the deletion and