Browse Source

Fix dataDirs.maxVolumes default value when not included in a values.yaml (#6119)

pull/6120/head
rschnei87 2 months ago
committed by GitHub
parent
commit
c4525dc6e2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      k8s/charts/seaweedfs/templates/volume-statefulset.yaml

4
k8s/charts/seaweedfs/templates/volume-statefulset.yaml

@ -146,7 +146,9 @@ spec:
{{- if .Values.volume.idx }} {{- if .Values.volume.idx }}
-dir.idx=/idx \ -dir.idx=/idx \
{{- end }} {{- 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 }} {{- if .Values.volume.rack }}
-rack={{ .Values.volume.rack }} \ -rack={{ .Values.volume.rack }} \
{{- end }} {{- end }}

Loading…
Cancel
Save