From 38918858006d9357ec3c7e914ed2cabcd4aa839d Mon Sep 17 00:00:00 2001 From: Russell Sim Date: Fri, 23 Dec 2022 21:28:20 +0100 Subject: [PATCH] helm: fix creating users, via proper secretKey (#16310) --- helm/minio/templates/_helper_create_user.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/minio/templates/_helper_create_user.txt b/helm/minio/templates/_helper_create_user.txt index 324bc9d48..ea2b3b675 100644 --- a/helm/minio/templates/_helper_create_user.txt +++ b/helm/minio/templates/_helper_create_user.txt @@ -93,7 +93,7 @@ connectToMinio $scheme {{- range .Values.users }} echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP {{- 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 sed -i '$a\' $MINIO_ACCESSKEY_SECRETKEY_TMP createUser {{ .policy }}