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
"Enable leader election for controller manager. "+
93
100
"Enabling this will ensure there is only one active controller manager.")
101
+
flag.StringVar(
102
+
&leaderElectionNamespace,
103
+
"leader-election-namespace",
104
+
"",
105
+
"Namespace that the controller performs leader election in. If unspecified, the controller will discover which namespace it is running in.",
106
+
)
107
+
flag.DurationVar(
108
+
&leaderElectionLeaseDuration,
109
+
"leader-elect-lease-duration",
110
+
15*time.Second,
111
+
"Interval at which non-leader candidates will wait to force acquire leadership (duration string)",
112
+
)
113
+
flag.DurationVar(
114
+
&leaderElectionRenewDeadline,
115
+
"leader-elect-renew-deadline",
116
+
10*time.Second,
117
+
"Duration that the leading controller manager will retry refreshing leadership before giving up (duration string)",
118
+
)
119
+
flag.DurationVar(
120
+
&leaderElectionRetryPeriod,
121
+
"leader-elect-retry-period",
122
+
2*time.Second,
123
+
"Duration the LeaderElector clients should wait between tries of actions (duration string)",
124
+
)
94
125
flag.IntVar(&webhookPort,
95
126
"webhook-port",
96
127
9443,
@@ -122,6 +153,12 @@ func main() {
122
153
true,
123
154
"Initialize OCI clients on startup",
124
155
)
156
+
flag.StringVar(
157
+
&watchNamespace,
158
+
"namespace",
159
+
"",
160
+
"Namespace that the controller watches to reconcile cluster-api objects. If unspecified, the controller watches for cluster-api objects across all namespaces.",
0 commit comments