Skip to content

Commit

Permalink
fix #2969
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Nov 16, 2024
1 parent dade8d9 commit 3033fd5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/dao/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (o DrainOptions) toDrainHelper(k kubernetes.Interface, w io.Writer) drain.H
Timeout: o.Timeout,
DeleteEmptyDirData: o.DeleteEmptyDirData,
IgnoreAllDaemonSets: o.IgnoreAllDaemonSets,
DisableEviction: o.DisableEviction,
Out: w,
ErrOut: w,
Force: o.Force,
Expand Down
1 change: 1 addition & 0 deletions internal/dao/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ type DrainOptions struct {
IgnoreAllDaemonSets bool
DeleteEmptyDirData bool
Force bool
DisableEviction bool
}

// NodeMaintainer performs node maintenance operations.
Expand Down
3 changes: 3 additions & 0 deletions internal/view/drain_dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ func ShowDrain(view ResourceViewer, sels []string, opts dao.DrainOptions, okFn D
f.AddCheckbox("Force:", opts.Force, func(_ string, v bool) {
opts.Force = v
})
f.AddCheckbox("Disable Eviction:", opts.DisableEviction, func(_ string, v bool) {
opts.DisableEviction = v
})

pages := view.App().Content.Pages
f.AddButton("Cancel", func() {
Expand Down

0 comments on commit 3033fd5

Please sign in to comment.