Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix loop logic in bucket hook and fix bucket name sin values file

Max Roby869c2ff4f492
diff --git a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml
index 5848af34df..57514b20f4 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 6584a9b3cc..b837db1642 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