From 7c5e4da90cf399e72d55d2133b524d8d77847cfc Mon Sep 17 00:00:00 2001 From: Alexander Overvoorde <60606100+OvervCW@users.noreply.github.com> Date: Mon, 14 Nov 2022 10:47:59 -0700 Subject: [PATCH] helm: Allow tls.certSecret in chart to be template'd (#16064) --- helm/minio/templates/_helpers.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/minio/templates/_helpers.tpl b/helm/minio/templates/_helpers.tpl index 4e381941c..3d62c69ed 100644 --- a/helm/minio/templates/_helpers.tpl +++ b/helm/minio/templates/_helpers.tpl @@ -166,7 +166,7 @@ Formats volume for MinIO TLS keys and trusted certs {{- if .Values.tls.enabled }} - name: cert-secret-volume secret: - secretName: {{ .Values.tls.certSecret }} + secretName: {{ tpl .Values.tls.certSecret }} items: - key: {{ .Values.tls.publicCrt }} path: public.crt @@ -215,4 +215,4 @@ otherwise it generates a random value. {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }} {{- end }} -{{- end -}} \ No newline at end of file +{{- end -}}