mirror of https://github.com/kubernetes/kops.git
set GracePeriodSeconds to -1
This commit is contained in:
parent
cc25a5a977
commit
3961d85e44
|
@ -303,12 +303,13 @@ func (r *RollingUpdateInstanceGroup) DrainNode(u *cloudinstances.CloudInstanceGr
|
||||||
errOut := os.Stderr
|
errOut := os.Stderr
|
||||||
|
|
||||||
options := &cmd.DrainOptions{
|
options := &cmd.DrainOptions{
|
||||||
Factory: f,
|
Factory: f,
|
||||||
Out: out,
|
Out: out,
|
||||||
IgnoreDaemonsets: true,
|
IgnoreDaemonsets: true,
|
||||||
Force: true,
|
Force: true,
|
||||||
DeleteLocalData: true,
|
DeleteLocalData: true,
|
||||||
ErrOut: errOut,
|
ErrOut: errOut,
|
||||||
|
GracePeriodSeconds: -1,
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := cmd.NewCmdDrain(f, out, errOut)
|
cmd := cmd.NewCmdDrain(f, out, errOut)
|
||||||
|
|
Loading…
Reference in New Issue