mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
helm: add a new line to the end of the credentials file (#15485)
This commit is contained in:
parent
e0b0a351c6
commit
a0d14f8ff7
@ -94,6 +94,8 @@ connectToMinio $scheme
|
||||
echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||
{{- if .existingSecret }}
|
||||
cat /config/secrets/{{ 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 }}
|
||||
{{ else }}
|
||||
echo {{ .secretKey }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||
|
Loading…
x
Reference in New Issue
Block a user