Skip to content

Commit

Permalink
Merge pull request #7510 from justinsb/set_delete_local_data
Browse files Browse the repository at this point in the history
DeleteLocalData on drain
  • Loading branch information
k8s-ci-robot authored Sep 3, 2019
2 parents 516d5f8 + 8b02cf1 commit a7ed5ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/instancegroups/instancegroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,11 @@ func (r *RollingUpdateInstanceGroup) DrainNode(u *cloudinstances.CloudInstanceGr
Out: os.Stdout,
ErrOut: os.Stderr,

// We want to proceed even when pods are using local data (emptyDir)
DeleteLocalData: true,

// Other options we might want to set:
// Timeout?
// DeleteLocalData?
}

if err := drain.RunCordonOrUncordon(helper, u.Node, true); err != nil {
Expand Down

0 comments on commit a7ed5ae

Please sign in to comment.