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