Commit 390224f
committed
OCPBUGS-59626: operator: don't react to events from all namespaces
An informer for an empty namespace will list resources from all namespaces
and cluster level. This may be undesirable, as this makes the controller
react to events from different namespaces, while we're only interested in
cluster-level events for clusterInformers.
This prevents kas-operator from becoming degraded when unrelated namespace
secrets are corrupted, which was causing false positive degradations.
The fix removes the empty string namespace parameter that was causing the
operator to watch ALL namespaces, and instead uses cluster-level only
informers as intended by library-go#1985.
Fixes: OCPBUGS-59626
Related: library-go#19851 parent 9182a52 commit 390224f
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
0 commit comments