From 6ac8dc16a0bd3a14f372a8a09bec3ed18d60ee0f Mon Sep 17 00:00:00 2001 From: hoppla20 Date: Wed, 18 Mar 2026 11:42:27 +0100 Subject: [PATCH] fix(chart): add createBucketsHook value to allInOne and filer s3 blocks --- .../seaweedfs/templates/shared/post-install-bucket-hook.yaml | 2 +- k8s/charts/seaweedfs/values.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml index 0e65c6b00..1a20a293a 100644 --- a/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml +++ b/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml @@ -189,7 +189,7 @@ spec: {{- end }} - containerPort: {{ .Values.master.grpcPort }} #name: swfs-master-grpc - {{- with .Values.s3.createBucketsHook.resources }} + {{- with coalesce .Values.allInOne.s3.createBucketsHook.resources .Values.s3.createBucketsHook.resources .Values.filer.s3.createBucketsHook.resources }} resources: {{- toYaml . | nindent 10 }} {{- end }} diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml index ea09336af..f63d4b5ca 100644 --- a/k8s/charts/seaweedfs/values.yaml +++ b/k8s/charts/seaweedfs/values.yaml @@ -909,6 +909,8 @@ filer: # versioning: Enabled # - name: bucket-b # anonymousRead: false + createBucketsHook: + resources: {} s3: enabled: false @@ -1477,6 +1479,8 @@ allInOne: # versioning: Enabled # - name: bucket-b # anonymousRead: false + createBucketsHook: + resources: {} # SFTP server configuration # Note: Most parameters below default to null, which means they inherit from