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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Fix dataDirs.maxVolumes default value when not included in a values.yaml (#6119)
rschnei87c4525dc6e291
diff --git a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume-statefulset.yamlindex e197bff857..e9194b4859 100644--- a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml@@ -146,7 +146,9 @@ spec:{{- if .Values.volume.idx }}-dir.idx=/idx \{{- end }}- -max {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}{{$dir.maxVolumes}}{{end}} \+ -max {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}+ {{- if eq ($dir.maxVolumes | toString) "0" }}0{{ else if not $dir.maxVolumes }}7{{ else }}{{$dir.maxVolumes}}{{ end }}+ {{- end }} \{{- if .Values.volume.rack }}-rack={{ .Values.volume.rack }} \{{- end }}