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: config/opts.go
+13
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,24 @@ type (
15
15
LogJsonbool` long:"log.json" env:"LOG_JSON" description:"Switch log output to json format"`
16
16
}
17
17
18
+
// instance
19
+
Instancestruct {
20
+
Nodename*string`long:"instance.nodename" env:"INSTANCE_NODENAME" description:"Name of node where autopilot is running"`
21
+
Namespace*string`long:"instance.namespace" env:"INSTANCE_NAMESPACE" description:"Name of namespace where autopilot is running"`
22
+
Pod*string`long:"instance.pod" env:"INSTANCE_POD" description:"Name of pod where autopilot is running"`
23
+
}
24
+
18
25
K8sstruct {
19
26
NodeLabelSelectorstring`long:"kube.node.labelselector" env:"KUBE_NODE_LABELSELECTOR" description:"Node Label selector which nodes should be checked" default:""`
20
27
WatchTimeout time.Duration`long:"kube.watch.timeout" env:"KUBE_WATCH_TIMEOUT" description:"Timeout & full resync for node watch (time.Duration)" default:"24h"`
21
28
}
22
29
30
+
// lease
31
+
Leasestruct {
32
+
Enabledbool`long:"lease.enable" env:"LEASE_ENABLE" description:"Enable lease (leader election; enabled by default in docker images)"`
33
+
Namestring`long:"lease.name" env:"LEASE_NAME" description:"Name of lease lock" default:"kube-pool-manager-leader"`
34
+
}
35
+
23
36
// general options
24
37
DryRunbool`long:"dry-run" env:"DRY_RUN" description:"Dry run (do not apply to nodes)"`
0 commit comments