Skip to content

Commit 06862a9

Browse files
dropping namespaceSelector entirely (#43)
* dropping namespaceSelector entirely * explicitly set empty string for watch namespace Signed-off-by: greg pereira <grpereir@redhat.com>
1 parent 2a57b29 commit 06862a9

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

config/manager/manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ spec:
6262
args:
6363
- --leader-elect=true
6464
- --health-probe-bind-address=:8081
65+
# set watch-namespace explicitly to empty string for consistent behaviour because of diverging defaults between upstream and midstream/downstream
66+
- --watch-namespace=
6567
# Leader election timeout configuration (optional - defaults shown below)
6668
# Uncomment and adjust these values if you need to tune for your environment:
6769
# - --leader-election-lease-duration=60s

config/prometheus/monitor.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,3 @@ spec:
2222
matchLabels:
2323
control-plane: controller-manager
2424
app.kubernetes.io/name: workload-variant-autoscaler
25-
namespaceSelector:
26-
matchNames:
27-
- workload-variant-autoscaler-system

config/prometheus/servicemonitor.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ spec:
99
selector:
1010
matchLabels:
1111
control-plane: controller-manager
12-
namespaceSelector:
13-
matchNames:
14-
- workload-variant-autoscaler-system
1512
endpoints:
1613
- port: http
1714
scheme: http

0 commit comments

Comments
 (0)