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
This changes the default behaviour in that Draino would previously evict
unreplicated pods and pods with local storage, and now will not. This is
not ideal, but alecthomas/kingpin#243 would
result in a confusing user experience if we used a mix of default true and
default false boolean flags. Given the project is about 10 minutes old it
seems acceptable to make this change.
Copy file name to clipboardExpand all lines: cmd/draino/draino.go
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,10 @@ func main() {
38
38
drainBuffer=app.Flag("drain-buffer", "Minimum time between starting each drain. Nodes are always cordoned immediately.").Default(kubernetes.DefaultDrainBuffer.String()).Duration()
39
39
nodeLabels=app.Flag("node-label", "Only nodes with this label will be eligible for cordoning and draining. May be specified multiple times.").PlaceHolder("KEY=VALUE").StringMap()
40
40
41
+
evictDaemonSetPods=app.Flag("evict-daemonset-pods", "Evict pods that were created by an extant DaemonSet.").Bool()
42
+
evictLocalStoragePods=app.Flag("evict-emptydir-pods", "Evict pods with local storage, i.e. with emptyDir volumes.").Bool()
43
+
evictUnreplicatedPods=app.Flag("evict-unreplicated-pods", "Evict pods that were not created by a replication controller.").Bool()
44
+
41
45
conditions=app.Arg("node-conditions", "Nodes for which any of these conditions are true will be cordoned and drained.").Strings()
0 commit comments