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)