From cca3ce3c4410583066b93fff4be9f6a81ec33043 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Fri, 11 Feb 2022 00:42:18 +0100
Subject: [PATCH] feat(monitoring): Enable automatic replacement of CRDs

This patch should force CRDs to be properly updates during an install or
upgrade, preventing manual adjustments when changing versions.
---
 infrastructure/monitoring/release.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/infrastructure/monitoring/release.yaml b/infrastructure/monitoring/release.yaml
index 040a8c353..342d5e240 100644
--- a/infrastructure/monitoring/release.yaml
+++ b/infrastructure/monitoring/release.yaml
@@ -14,6 +14,10 @@ spec:
         namespace: monitoring-system
       version: 31.0.0
   interval: 5m
+  install:
+    crds: CreateReplace
+  upgrade:
+    crds: CreateReplace
   valuesFrom:
     - kind: Secret
       name: cluster-specfic-kube-prometheus
-- 
GitLab