mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -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
|
echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||||
{{- if .existingSecret }}
|
{{- if .existingSecret }}
|
||||||
cat /config/secrets/{{ 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
|
||||||
|
sed -i '$a\' $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||||
createUser {{ .policy }}
|
createUser {{ .policy }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
echo {{ .secretKey }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
|
echo {{ .secretKey }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user