mirror of
https://github.com/pgsty/minio.git
synced 2026-08-14 10:43:15 +03:00
helm: shared secrets handling for user and svcacct's (#16379)
This commit is contained in:
committed by
GitHub
parent
85ff76e7b0
commit
6ac48aff46
@@ -93,7 +93,7 @@ connectToMinio $scheme
|
||||
{{- range .Values.users }}
|
||||
echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||
{{- if .existingSecret }}
|
||||
cat /config/secrets/{{ tpl .existingSecretKey $global }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||
cat /config/secrets/{{ tpl .existingSecret $global }}/{{ tpl .existingSecretKey $global }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||
# Add a new line if it doesn't exist
|
||||
sed -i '$a\' $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||
createUser {{ .policy }}
|
||||
|
||||
Reference in New Issue
Block a user