From 6244bf7355d4dc20923bf88dfbe5e49bdb955ef4 Mon Sep 17 00:00:00 2001 From: Max Roby Date: Thu, 23 Nov 2023 11:28:47 +0100 Subject: [PATCH] only template the bucket job if buckets are defined --- k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml index 57514b20f..38f198c62 100644 --- a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml +++ b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml @@ -1,5 +1,6 @@ {{- if .Values.master.enabled }} {{- if .Values.filer.s3.enabled }} +{{- if .Values.filer.s3.createBuckets }} --- apiVersion: batch/v1 kind: Job @@ -69,3 +70,4 @@ spec: {{- end }} {{- end }} {{- end }} +{{- end }}