Merge pull request #96812 from bboreham/comment-grace

Comment default behaviour of kubectl drain.GracePeriodSeconds
This commit is contained in:
Kubernetes Prow Robot 2021-01-21 08:25:02 -08:00 committed by GitHub
commit c2ac8c360e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,12 @@ type Helper struct {
Ctx context.Context
Client kubernetes.Interface
Force bool
// GracePeriodSeconds is how long to wait for a pod to terminate.
// IMPORTANT: 0 means "delete immediately"; set to a negative value
// to use the pod's terminationGracePeriodSeconds.
GracePeriodSeconds int
IgnoreAllDaemonSets bool
Timeout time.Duration
DeleteEmptyDirData bool