From 1890efbd3987735053807e473f2229a7ea7ab476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9lie=20Loulergue?= Date: Fri, 13 Dec 2024 17:17:32 +0100 Subject: [PATCH] add condition on DELEGATED_STORAGE_HOST value --- opensource/templates/deployment.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/opensource/templates/deployment.yaml b/opensource/templates/deployment.yaml index b6d44cc..0a94687 100644 --- a/opensource/templates/deployment.yaml +++ b/opensource/templates/deployment.yaml @@ -108,7 +108,12 @@ spec: - name: DELEGATED_STORAGE_METHOD value: "{{ default "DISTANT_BACKEND" .Values.delegatedStorage.storageMethod }}" - name: DELEGATED_STORAGE_HOST - value: "http://{{ include "minioService" . }}:{{ .Values.s3.port}}" + value: > + {{- if eq .Values.delegatedStorage.storageMethod "S3" -}} + http://{{ include "minioService" . }}:{{ .Values.s3.port }} + {{- else -}} + {{ .Values.delegatedStorage.host }} + {{- end -}} - name: DELEGATED_STORAGE_READINESS_CHECK value: "{{ default "/minio/health/live" .Values.delegatedStorage.routes.readinessCheck }}" {{- if and (eq .Values.delegatedStorage.connect true) (eq .Values.delegatedStorage.storageMethod "DISTANT_BACKEND") }}