From c8cfdae0f884f6f51d4037c10fcda3e009a4fa89 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Wed, 17 Apr 2024 02:03:08 -0500 Subject: [PATCH] chore(cmd): Remove unnecessary var --- cmd/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(),