From 3a07188011a026ba3ea5b62dbc19bf90c7d750d8 Mon Sep 17 00:00:00 2001
From: Micah Nagel <micah.nagel@parsons.com>
Date: Thu, 28 Apr 2022 16:47:47 +0000
Subject: [PATCH] Fix Loki HR MinIO Operator Conditional

---
 chart/templates/logging/loki/loki-helmrelease.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/chart/templates/logging/loki/loki-helmrelease.yaml b/chart/templates/logging/loki/loki-helmrelease.yaml
index e932099b80..038162f20e 100644
--- a/chart/templates/logging/loki/loki-helmrelease.yaml
+++ b/chart/templates/logging/loki/loki-helmrelease.yaml
@@ -55,11 +55,13 @@ spec:
     - name: kyvernopolicies
       namespace: {{ .Release.Namespace }}
     {{- end }}
+    {{- if (eq .Values.loki.strategy "scalable") }}
     {{- with .Values.loki.objectStorage }}
     {{- if not (and .endpoint .accessKey .accessSecret .bucketNames) }}
     - name: minio-operator
       namespace: {{ $.Release.Namespace }}
     {{- end }}
     {{- end }}
+    {{- end }}
   {{- end }}
 {{- end }}
-- 
GitLab