From cf5703e86e3f3b4aa9dca31a979c4521890a8d2b Mon Sep 17 00:00:00 2001 From: Max Roby Date: Fri, 24 Nov 2023 12:08:50 +0100 Subject: [PATCH] existingConfigSecretshould now be consistently treated as a string in the post-install-hook --- k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml index 712eddd74..b8c95fcca 100644 --- a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml +++ b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml @@ -88,7 +88,7 @@ spec: - name: config-users secret: defaultMode: 420 - {{- if .Values.filer.s3.existingConfigSecret }} + {{- if not (empty .Values.filer.s3.existingConfigSecret) }} secretName: {{ .Values.filer.s3.existingConfigSecret }} {{- else }} secretName: seaweedfs-s3-secret