From 2eee744e344167184227f8c7d6a636c41c0c3a03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andi=20Br=C3=A4u?= Date: Fri, 29 Mar 2024 00:20:50 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20issue=20[#19314],=20resolve=20the=20absen?= =?UTF-8?q?ce=20of=20the=20sed=20command=20in=20ub=E2=80=A6=20(#19315)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix issue [minio#19314], resolve the absence of the sed command in ubi-micro by replacing it with echo. Signed-off-by: Andreas Bräu Co-authored-by: jiuker <2818723467@qq.com> --- helm/minio/templates/_helper_create_svcacct.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/minio/templates/_helper_create_svcacct.txt b/helm/minio/templates/_helper_create_svcacct.txt index 59f51b177..5c8aec4f0 100644 --- a/helm/minio/templates/_helper_create_svcacct.txt +++ b/helm/minio/templates/_helper_create_svcacct.txt @@ -93,7 +93,7 @@ echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP {{- if .existingSecret }} cat /config/secrets-svc/{{ 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 {{ else }} echo {{ .secretKey }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP {{- end }}