From 19936251d0a3cfb3877c40c121397c83270a4b8e Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 10 Jan 2021 17:03:24 +0100 Subject: [PATCH] Watch all namespaces --- README.md | 1 + main.go | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 6233097..d065f14 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,5 @@ scaffolded with ```console operator-sdk init --domain=bitmask.me --repo=git.zom.bi/images/keycloak-operator +# Edit Manager options to watch all namespaces (Namespace: "") ``` diff --git a/main.go b/main.go index 361a0e5..72220b1 100644 --- a/main.go +++ b/main.go @@ -62,6 +62,7 @@ func main() { ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts))) mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{ + Namespace: "", // all namespaces Scheme: scheme, MetricsBindAddress: metricsAddr, Port: 9443,