From 946b0707447260ce1139825c7757d3e1daa4e434 Mon Sep 17 00:00:00 2001 From: opencmit2 <112474703+opencmit2@users.noreply.github.com> Date: Wed, 13 Dec 2023 07:43:32 +0800 Subject: [PATCH] resolve the absence of the sed command in ubi-micro image (#18459) fix #18315 --- 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 9f2c6a4d8..bfb79bee5 100644 --- a/helm/minio/templates/_helper_create_user.txt +++ b/helm/minio/templates/_helper_create_user.txt @@ -97,7 +97,7 @@ echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP {{- if .existingSecret }} 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 +echo >> $MINIO_ACCESSKEY_SECRETKEY_TMP createUser {{ .policy }} {{ else }} echo {{ .secretKey }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP