helm: Use existingSecretKey as in the user example (#15386)

This commit is contained in:
Mathieu Parent
2022-07-22 19:25:22 +02:00
committed by GitHub
parent 2393a13f86
commit 290a53d735

View File

@@ -93,7 +93,7 @@ connectToMinio $scheme
{{- range .Values.users }}
echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP
{{- if .existingSecret }}
cat /config/secrets/{{ tpl .secretKey $global }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
cat /config/secrets/{{ tpl .existingSecretKey $global }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
createUser {{ .policy }}
{{ else }}
echo {{ .secretKey }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP