From 9eadfca4f78d24808fe986e16d2401c407dfdff6 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Wed, 2 Feb 2022 00:45:48 +0100
Subject: [PATCH] fix(monitoring): Fix broken namespace selectors

The namespace selector topic in the helm chart is a bit of a mess, but
github issues seem to help:

https://github.com/prometheus-operator/prometheus-operator/issues/3636
---
 infrastructure/monitoring/release.yaml | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/infrastructure/monitoring/release.yaml b/infrastructure/monitoring/release.yaml
index 55bda336f..3bf97247f 100644
--- a/infrastructure/monitoring/release.yaml
+++ b/infrastructure/monitoring/release.yaml
@@ -158,22 +158,18 @@ spec:
         allowedHostPaths: []
         volumes: []
       prometheusSpec:
-        ruleNamespaceSelector:
-          any: true
-        ruleSelectorNilUsesHelmValues: true
+        ruleNamespaceSelector: {}
+        ruleSelectorNilUsesHelmValues: false
         ruleSelector: {}
-        serviceMonitorSelectorNilUsesHelmValues: true
+        serviceMonitorSelectorNilUsesHelmValues: false
         serviceMonitorSelector: {}
-        serviceMonitorNamespaceSelector:
-          any: true
-        podMonitorSelectorNilUsesHelmValues: true
+        serviceMonitorNamespaceSelector: {}
+        podMonitorSelectorNilUsesHelmValues: false
         podMonitorSelector: {}
-        podMonitorNamespaceSelector:
-          any: true
-        probeSelectorNilUsesHelmValues: true
+        podMonitorNamespaceSelector: {}
+        probeSelectorNilUsesHelmValues: false
         probeSelector: {}
-        probeNamespaceSelector:
-          any: true
+        probeNamespaceSelector: {}
         retention: 14d
         retentionSize: ""
         walCompression: false
-- 
GitLab