From 08585c381b7838496719e4aad5f6a4bc1130d28c Mon Sep 17 00:00:00 2001 From: Asaf Date: Tue, 10 Sep 2024 17:33:56 +0300 Subject: [PATCH] fix(main): SecretSyncController split namespaces (#1400) * fix(main): SecretSyncController split namespaces * docs(CHANGELOG): bug fix entry --- CHANGELOG/CHANGELOG-1.20.md | 2 ++ main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG/CHANGELOG-1.20.md b/CHANGELOG/CHANGELOG-1.20.md index 58ab84827..5b66a43cf 100644 --- a/CHANGELOG/CHANGELOG-1.20.md +++ b/CHANGELOG/CHANGELOG-1.20.md @@ -14,3 +14,5 @@ Changelog for the K8ssandra Operator, new PRs should update the `unreleased` sec When cutting a new release, update the `unreleased` heading to the tag being generated and date, like `## vX.Y.Z - YYYY-MM-DD` and create a new placeholder section for `unreleased` entries. ## unreleased + +* [BUGFIX] [#1399](https://github.com/k8ssandra/k8ssandra-operator/issues/1399) Fixed SecretSyncController to handle multiple namespaces diff --git a/main.go b/main.go index fbc59f7f0..cddc52626 100644 --- a/main.go +++ b/main.go @@ -213,7 +213,7 @@ func main() { if err = (&replicationctrl.SecretSyncController{ ReconcilerConfig: reconcilerConfig, ClientCache: clientCache, - WatchNamespaces: []string{watchNamespace}, + WatchNamespaces: strings.Split(watchNamespace, ","), }).SetupWithManager(mgr, additionalClusters, setupLog); err != nil { setupLog.Error(err, "unable to create controller", "controller", "SecretSync") os.Exit(1)