From 0aea4dc1f31273ced91aaf9ec5ddd8ff6653844b Mon Sep 17 00:00:00 2001 From: Max Roby Date: Thu, 23 Nov 2023 11:31:20 +0100 Subject: [PATCH] add a $ to env vars so they expand in shell --- k8s/charts/seaweedfs/templates/post-install-user-hook.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/charts/seaweedfs/templates/post-install-user-hook.yaml b/k8s/charts/seaweedfs/templates/post-install-user-hook.yaml index 40cf9b427..767369604 100644 --- a/k8s/charts/seaweedfs/templates/post-install-user-hook.yaml +++ b/k8s/charts/seaweedfs/templates/post-install-user-hook.yaml @@ -67,8 +67,8 @@ spec: "s3.configure --user {{ $props.name }} \ --buckets {{ $props.buckets }} \ --actions {{ $props.actions }} \ - --access_key "{{ $props.secretName | upper }}-ID" \ - --secret_key "{{ $props.secretName | upper }}-KEY" \ + --access_key "${{ $props.secretName | upper }}-ID" \ + --secret_key "${{ $props.secretName | upper }}-KEY" \ --apply true" |\ /usr/bin/weed shell {{- end }}