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. Enabling this will ensure there is only one active controller manager.")
92
-
flag.StringVar(
88
+
fs.StringVar(
93
89
&managerOpts.LeaderElectionID,
94
90
"leader-election-id",
95
91
defaultLeaderElectionID,
96
92
"Name of the config map to use as the locking resource when configuring leader election.")
97
-
flag.StringVar(
98
-
&namespace,
99
-
"namespace",
100
-
"",
101
-
"Namespace that the controller watches to reconcile cluster-api objects. If unspecified, the controller watches for cluster-api objects across all namespaces.")
102
-
flag.StringVar(
103
-
&profilerAddress,
104
-
"profiler-address",
105
-
defaultProfilerAddr,
106
-
"Bind address to expose the pprof profiler (e.g. localhost:6060)")
107
-
flag.DurationVar(
108
-
&syncPeriod,
109
-
"sync-period",
110
-
defaultSyncPeriod,
111
-
"The interval at which cluster-api objects are synchronized")
112
-
flag.IntVar(
93
+
94
+
fs.IntVar(
113
95
&managerOpts.MaxConcurrentReconciles,
114
96
"max-concurrent-reconciles",
115
97
10,
116
98
"The maximum number of allowed, concurrent reconciles.")
117
-
flag.StringVar(
99
+
100
+
fs.StringVar(
118
101
&managerOpts.PodName,
119
102
"pod-name",
120
103
defaultPodName,
121
104
"The name of the pod running the controller manager.")
122
-
flag.IntVar(
123
-
&webhookOpts.Port,
124
-
"webhook-port",
125
-
defaultWebhookPort,
126
-
"Webhook Server port (set to 0 to disable)")
127
-
flag.StringVar(
128
-
&managerOpts.HealthProbeBindAddress,
129
-
"health-addr",
130
-
":9440",
131
-
"The address the health endpoint binds to.",
132
-
)
133
-
flag.StringVar(
105
+
106
+
fs.StringVar(
134
107
&managerOpts.CredentialsFile,
135
108
"credentials-file",
136
109
"/etc/capv/credentials.yaml",
137
110
"path to CAPV's credentials file",
138
111
)
139
-
flag.BoolVar(
112
+
fs.BoolVar(
140
113
&managerOpts.EnableKeepAlive,
141
114
"enable-keep-alive",
142
115
defaultEnableKeepAlive,
143
116
"feature to enable keep alive handler in vsphere sessions. This functionality is enabled by default.")
144
-
flag.DurationVar(
117
+
fs.DurationVar(
145
118
&managerOpts.KeepAliveDuration,
146
119
"keep-alive-duration",
147
120
defaultKeepAliveDuration,
148
121
"idle time interval(minutes) in between send() requests in keepalive handler",
149
122
)
150
-
flag.StringVar(
123
+
fs.StringVar(
151
124
&managerOpts.NetworkProvider,
152
125
"network-provider",
153
126
"",
154
127
"network provider to be used by Supervisor based clusters.",
"Duration the LeaderElector clients should wait between tries of actions (duration string)")
148
+
149
+
fs.StringVar(&watchNamespace, "namespace", "",
150
+
"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