aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Roby <max@lil-mac.lan>2023-11-23 10:17:50 +0100
committerChris Lu <chrislusf@users.noreply.github.com>2023-11-24 06:40:19 -0800
commit869c2ff4f492dd254bbee88516b7d6e31afdef4b (patch)
treed44b7e56815ff2cda7912b2b3c45c5d0eb24aff7
parente4f77b283cc09f4dc69a20f94be15d760aa4674e (diff)
downloadseaweedfs-869c2ff4f492dd254bbee88516b7d6e31afdef4b.tar.xz
seaweedfs-869c2ff4f492dd254bbee88516b7d6e31afdef4b.zip
fix loop logic in bucket hook and fix bucket name sin values file
-rw-r--r--k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml2
-rw-r--r--k8s/charts/seaweedfs/values.yaml6
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