You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/draino/draino.go
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ func main() {
58
58
maxGracePeriod=app.Flag("max-grace-period", "Maximum time evicted pods will be given to terminate gracefully.").Default(kubernetes.DefaultMaxGracePeriod.String()).Duration()
59
59
evictionHeadroom=app.Flag("eviction-headroom", "Additional time to wait after a pod's termination grace period for it to have been deleted.").Default(kubernetes.DefaultEvictionOverhead.String()).Duration()
60
60
drainBuffer=app.Flag("drain-buffer", "Minimum time between starting each drain. Nodes are always cordoned immediately.").Default(kubernetes.DefaultDrainBuffer.String()).Duration()
61
-
nodeLabels=app.Flag("node-label", "(Deprecated) Nodes with this label will be eligible for cordoning and draining. May be specified multiple times").StringMap()
61
+
nodeLabels=app.Flag("node-label", "(Deprecated) Nodes with this label will be eligible for cordoning and draining. May be specified multiple times").Strings()
62
62
nodeLabelsExpr=app.Flag("node-label-expr", "Nodes that match this expression will be eligible for cordoning and draining.").String()
63
63
namespace=app.Flag("namespace", "Namespace used to create leader election lock object.").Default("kube-system").String()
64
64
@@ -188,8 +188,9 @@ func main() {
188
188
if*nodeLabelsExpr!="" {
189
189
kingpin.Fatalf("nodeLabels and NodeLabelsExpr cannot both be set")
0 commit comments