mirror of
https://github.com/minio/minio.git
synced 2025-04-01 02:03:42 -04:00
helm: fix creating users, via proper secretKey (#16310)
This commit is contained in:
parent
b882310e2b
commit
3891885800
@ -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 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user