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(chart): all in one maxVolumes value (#8683)

hoppla20efe722c18c21
diff --git a/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml b/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml
index 187df65bd3..5a833eb3d5 100644
--- a/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml
+++ b/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml
@@ -168,8 +168,12 @@ spec:
{{- if .Values.allInOne.disableHttp }}
-disableHttp={{ .Values.allInOne.disableHttp }} \
{{- end }}
- {{- if and (.Values.volume.dataDirs) (index .Values.volume.dataDirs 0 "maxVolumes") }}
- -volume.max={{ index .Values.volume.dataDirs 0 "maxVolumes" }} \
+ {{- if .Values.volume.dataDirs }}
+ {{- with (first .Values.volume.dataDirs) }}
+ {{- if and (hasKey . "maxVolumes") (ne .maxVolumes nil) }}
+ -volume.max={{ .maxVolumes }} \
+ {{- end }}
+ {{- end }}
{{- end }}
-master.port={{ .Values.master.port }} \
{{- if .Values.global.enableReplication }}