mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
helm: add a new line to the end of the credentials file (#15485)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user