Watch all namespaces
This commit is contained in:
parent
8170c521c0
commit
19936251d0
2 changed files with 2 additions and 0 deletions
|
@ -4,4 +4,5 @@ scaffolded with
|
||||||
|
|
||||||
```console
|
```console
|
||||||
operator-sdk init --domain=bitmask.me --repo=git.zom.bi/images/keycloak-operator
|
operator-sdk init --domain=bitmask.me --repo=git.zom.bi/images/keycloak-operator
|
||||||
|
# Edit Manager options to watch all namespaces (Namespace: "")
|
||||||
```
|
```
|
||||||
|
|
1
main.go
1
main.go
|
@ -62,6 +62,7 @@ func main() {
|
||||||
ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts)))
|
ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts)))
|
||||||
|
|
||||||
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
|
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
|
||||||
|
Namespace: "", // all namespaces
|
||||||
Scheme: scheme,
|
Scheme: scheme,
|
||||||
MetricsBindAddress: metricsAddr,
|
MetricsBindAddress: metricsAddr,
|
||||||
Port: 9443,
|
Port: 9443,
|
||||||
|
|
Loading…
Reference in a new issue