diff --git a/cmd/main.go b/cmd/main.go index 8091c67..2aaa696 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -57,7 +57,6 @@ func main() { var probeAddr string var secureMetrics bool var enableHTTP2 bool - var clusterResourceNamespace string flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.") flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.") flag.BoolVar(&enableLeaderElection, "leader-elect", false, @@ -67,7 +66,7 @@ func main() { "If set the metrics endpoint is served securely") flag.BoolVar(&enableHTTP2, "enable-http2", false, "If set, HTTP/2 will be enabled for the metrics and webhook servers") - flag.StringVar(&clusterResourceNamespace, "cluster-resource-namespace", controller.ClusterResourceNamespace, + flag.StringVar(&controller.ClusterResourceNamespace, "cluster-resource-namespace", controller.ClusterResourceNamespace, "Namespace to store resources owned by cluster scoped resources", ) flag.StringVar(&controller.IngressAnnotationPrefix, "ingress-annotation-prefix", controller.IngressAnnotationPrefix, @@ -129,7 +128,6 @@ func main() { os.Exit(1) } - controller.ClusterResourceNamespace = clusterResourceNamespace if err = (&controller.MonitorReconciler{ Client: mgr.GetClient(), Scheme: mgr.GetScheme(),