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
{{ message }}
This repository was archived by the owner on Sep 18, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: cmd/update-operator/main.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ var (
19
19
afterRebootAnnotations flagutil.StringSliceFlag
20
20
kubeconfig=flag.String("kubeconfig", "", "Path to a kubeconfig file. Default to the in-cluster config if not provided.")
21
21
autoLabelContainerLinux=flag.Bool("auto-label-container-linux", false, "Auto-label Container Linux nodes with agent=true (convenience)")
22
+
rebootWindowStart=flag.String("reboot-window-start", "", "Day of week ('Sun', 'Mon', ...; optional) and time of day at which the reboot window starts. E.g. 'Mon 14:00', '11:00'")
23
+
rebootWindowLength=flag.String("reboot-window-length", "", "Length of the reboot window. E.g. '1h30m'")
22
24
printVersion=flag.Bool("version", false, "Print version and exit")
23
25
// deprecated
24
26
analyticsEnabledoptValue
@@ -70,6 +72,8 @@ func main() {
70
72
AgentImageRepo: *agentImageRepo,
71
73
BeforeRebootAnnotations: beforeRebootAnnotations,
72
74
AfterRebootAnnotations: afterRebootAnnotations,
75
+
RebootWindowStart: *rebootWindowStart,
76
+
RebootWindowLength: *rebootWindowLength,
73
77
})
74
78
iferr!=nil {
75
79
glog.Fatalf("Failed to initialize %s: %v", os.Args[0], err)
0 commit comments