From 35ed4270ff817fc531c1abe650df985bf9c86872 Mon Sep 17 00:00:00 2001 From: Giuseppe Baccini Date: Tue, 18 Jul 2023 10:49:06 +0200 Subject: [PATCH] fix S3_CERTIFICATE_SECRET env var value when using s3gw Fixes: https://github.com/epinio/epinio/issues/2466 Signed-off-by: Giuseppe Baccini --- chart/epinio/templates/server.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/epinio/templates/server.yaml b/chart/epinio/templates/server.yaml index 6d2a269c..ed367aec 100644 --- a/chart/epinio/templates/server.yaml +++ b/chart/epinio/templates/server.yaml @@ -305,7 +305,7 @@ spec: value: {{ default "minio-tls" .Values.s3.certificateSecret }} {{- else if .Values.s3gw.enabled }} - name: S3_CERTIFICATE_SECRET - value: {{ default "s3gw-cluster-ip-tls" .Values.s3.certificateSecret }} + value: {{ default (printf "%s-%s-cluster-ip-tls" .Release.Name .Release.Namespace) .Values.s3.certificateSecret }} {{- else if .Values.s3.certificateSecret }} - name: S3_CERTIFICATE_SECRET value: {{ .Values.s3.certificateSecret }}