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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
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 }} |
|
|
|