Watch all namespaces

This commit is contained in:
paul 2021-01-10 17:03:24 +01:00
parent 8170c521c0
commit 19936251d0
2 changed files with 2 additions and 0 deletions

View file

@ -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: "")
```

View file

@ -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,