From 9be87d7fe2fb516a79fb5afdab4faa4eb7f0b016 Mon Sep 17 00:00:00 2001
From: Kliu <kliu@vivsoft.io>
Date: Mon, 24 Feb 2025 11:02:52 -0500
Subject: [PATCH] added minio enable for scalable

Signed-off-by: Kliu <kliu@vivsoft.io>
---
 chart/templates/loki/values.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/chart/templates/loki/values.yaml b/chart/templates/loki/values.yaml
index f0b67d1110..6e970cc558 100644
--- a/chart/templates/loki/values.yaml
+++ b/chart/templates/loki/values.yaml
@@ -162,6 +162,14 @@ gateway:
           fieldPath: status.podIP
 {{- end }}
 
+{{- with .Values.loki.objectStorage }}
+{{- if and (eq $.Values.loki.strategy "scalable") (not (and .endpoint .region)) }}
+minio:
+  enabled: true
+
+{{- end }}
+{{- end }}
+
 # Allows users to deploy distributed mode but calls out that we do not support it
 {{- if (eq .Values.loki.strategy "distributed") }}
 deploymentMode: Distributed
-- 
GitLab