in main.go [65:108]
func setFlags() *managerOpts {
opts := &managerOpts{}
flag.StringVar(
&opts.CloudConfigFile,
"cloud-config-file",
"/config/cloud-config",
"Overrides the default path to the cloud-config file that contains the CloudStack credentials.")
flag.StringVar(
&opts.MetricsAddr,
"metrics-bind-addr",
"localhost:8080",
"The address the metric endpoint binds to.")
flag.StringVar(
&opts.ProbeAddr,
"health-probe-bind-address",
":8081",
"The address the probe endpoint binds to.")
flag.BoolVar(
&opts.EnableLeaderElection,
"leader-elect",
false,
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
flag.StringVar(
&opts.WatchingNamespace,
"namespace",
"",
"Namespace that the controller watches to reconcile cluster-api objects. If unspecified, "+
"the controller watches for cluster-api objects across all namespaces.")
flag.StringVar( // TODO: use filter per CAPI book instructions in upgrade to v1alpha4.
&opts.WatchFilterValue,
"watch-filter",
"",
fmt.Sprintf(
"Label value that the controller watches to reconcile cluster-api objects. "+
"Label key is always %s. If unspecified, the controller watches for all cluster-api objects.",
clusterv1.WatchLabel))
flag.StringVar(
&opts.CertDir,
"webhook-cert-dir",
"/tmp/k8s-webhook-server/serving-certs/",
"Specify the directory where webhooks will get tls certificates.")
return opts
}