From 1cbdc283246e2431d8786fdb056dd4426d439040 Mon Sep 17 00:00:00 2001 From: Pascal Iske Date: Thu, 4 Dec 2025 02:19:51 +0100 Subject: [PATCH] fix: use correct namespace for leader election if deployed into custom namespace Signed-off-by: Pascal Iske --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index d2d93b8..08945d2 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -76,7 +76,7 @@ func main() { flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metrics endpoint binds to. "+ "Use :8443 for HTTPS or :8080 for HTTP, or leave as 0 to disable the metrics service.") flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.") - flag.StringVar(&clusterResourceNamespace, "cluster-resource-namespace", "cloudflare-operator-system", "The default namespace for cluster scoped resources.") + flag.StringVar(&clusterResourceNamespace, "cluster-resource-namespace", "", "The default namespace for cluster scoped resources.") flag.BoolVar(&overwriteUnmanaged, "overwrite-unmanaged-dns", false, "Overwrite DNS records that do not have a corresponding managed TXT record, defaults to false.") flag.BoolVar(&enableLeaderElection, "leader-elect", true, "Enable leader election for controller manager. "+