Skip to content

Commit

Permalink
Merge pull request #5143 from rajatjindal/fix-drain
Browse files Browse the repository at this point in the history
set default GracePeriodSeconds to -1 when draining nodes
  • Loading branch information
k8s-ci-robot committed May 17, 2018
2 parents be15242 + 3961d85 commit 80c692f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkg/instancegroups/instancegroups.go
Expand Up @@ -303,12 +303,13 @@ func (r *RollingUpdateInstanceGroup) DrainNode(u *cloudinstances.CloudInstanceGr
errOut := os.Stderr

options := &cmd.DrainOptions{
Factory: f,
Out: out,
IgnoreDaemonsets: true,
Force: true,
DeleteLocalData: true,
ErrOut: errOut,
Factory: f,
Out: out,
IgnoreDaemonsets: true,
Force: true,
DeleteLocalData: true,
ErrOut: errOut,
GracePeriodSeconds: -1,
}

cmd := cmd.NewCmdDrain(f, out, errOut)
Expand Down

0 comments on commit 80c692f

Please sign in to comment.