helm: fix creating users, via proper secretKey (#16310)

This commit is contained in:
Russell Sim 2022-12-23 21:28:20 +01:00 committed by Harshavardhana
parent b882310e2b
commit 3891885800
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ connectToMinio $scheme
{{- range .Values.users }} {{- range .Values.users }}
echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP
{{- if .existingSecret }} {{- if .existingSecret }}
cat /config/secrets/{{ tpl .existingSecret $global }}/{{ tpl .existingSecretKey $global }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP cat /config/secrets/{{ tpl .existingSecretKey $global }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
# Add a new line if it doesn't exist # Add a new line if it doesn't exist
sed -i '$a\' $MINIO_ACCESSKEY_SECRETKEY_TMP sed -i '$a\' $MINIO_ACCESSKEY_SECRETKEY_TMP
createUser {{ .policy }} createUser {{ .policy }}