aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Roby <max@lil-mac.lan>2023-11-23 11:28:47 +0100
committerChris Lu <chrislusf@users.noreply.github.com>2023-11-24 06:40:19 -0800
commit6244bf7355d4dc20923bf88dfbe5e49bdb955ef4 (patch)
tree413813f8c65e47de084135c807de862db67bdee0
parent9ff010d15b87723ad3a5bea87585d7e6b1c19403 (diff)
downloadseaweedfs-6244bf7355d4dc20923bf88dfbe5e49bdb955ef4.tar.xz
seaweedfs-6244bf7355d4dc20923bf88dfbe5e49bdb955ef4.zip
only template the bucket job if buckets are defined
-rw-r--r--k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml2
1 files changed, 2 insertions, 0 deletions
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 }}