mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Comment default behaviour of GracePeriodSeconds
It took me a while to spot this subtlety. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
540e41c825
commit
7c764c8550
@ -46,10 +46,15 @@ const (
|
|||||||
|
|
||||||
// Helper contains the parameters to control the behaviour of drainer
|
// Helper contains the parameters to control the behaviour of drainer
|
||||||
type Helper struct {
|
type Helper struct {
|
||||||
Ctx context.Context
|
Ctx context.Context
|
||||||
Client kubernetes.Interface
|
Client kubernetes.Interface
|
||||||
Force bool
|
Force bool
|
||||||
GracePeriodSeconds int
|
|
||||||
|
// 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
|
IgnoreAllDaemonSets bool
|
||||||
Timeout time.Duration
|
Timeout time.Duration
|
||||||
DeleteEmptyDirData bool
|
DeleteEmptyDirData bool
|
||||||
|
Loading…
Reference in New Issue
Block a user