helm: Allow tls.certSecret in chart to be template'd (#16064)

This commit is contained in:
Alexander Overvoorde 2022-11-14 10:47:59 -07:00 committed by GitHub
parent d6bc141bd1
commit 7c5e4da90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ Formats volume for MinIO TLS keys and trusted certs
{{- if .Values.tls.enabled }} {{- if .Values.tls.enabled }}
- name: cert-secret-volume - name: cert-secret-volume
secret: secret:
secretName: {{ .Values.tls.certSecret }} secretName: {{ tpl .Values.tls.certSecret }}
items: items:
- key: {{ .Values.tls.publicCrt }} - key: {{ .Values.tls.publicCrt }}
path: public.crt path: public.crt
@ -215,4 +215,4 @@ otherwise it generates a random value.
{{- else }} {{- else }}
{{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }}
{{- end }} {{- end }}
{{- end -}} {{- end -}}