From 869c2ff4f492dd254bbee88516b7d6e31afdef4b Mon Sep 17 00:00:00 2001 From: Max Roby Date: Thu, 23 Nov 2023 10:17:50 +0100 Subject: [PATCH] fix loop logic in bucket hook and fix bucket name sin values file --- .../seaweedfs/templates/post-install-bucket-hook.yaml | 2 +- k8s/charts/seaweedfs/values.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml index 5848af34d..57514b20f 100644 --- a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml +++ b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml @@ -48,8 +48,8 @@ spec: command: - "/bin/sh" - "-ec" - {{- range $.Values.filer.s3.createBuckets }} - | + {{- range $.Values.filer.s3.createBuckets }} exec /bin/echo \ "s3.bucket.create --name {{ . }}" |\ /usr/bin/weed shell diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml index 6584a9b3c..b837db164 100644 --- a/k8s/charts/seaweedfs/values.yaml +++ b/k8s/charts/seaweedfs/values.yaml @@ -578,12 +578,12 @@ filer: auditLogConfig: {} # You may specify buckets and users to be created during the install process # createBuckets: - # - bucketA - # - bucketB + # - bucket-a + # - bucket-b # createUsers: # - name: friend # actions: "read,write,list" - # buckets: "bucketA" + # buckets: "bucket-b" # secretName: friend-s3-creds