Fix/bad mount path better default value (#5253)

This commit is contained in:
spastorclovr
2024-01-29 16:11:37 +01:00
committed by GitHub
parent f6e39139d8
commit 5fa8f40fdf
2 changed files with 26 additions and 16 deletions

View File

@@ -62,7 +62,7 @@ spec:
args: [ 'ls {{range $dir := .Values.volume.dataDirs }}/{{$dir.name}}/*.idx {{end}} && xargs -I {} mv {} /idx/' ]
volumeMounts:
- name: idx
mountPath: {{ .Values.volume.idx.name }}
mountPath: /idx
{{- range $dir := .Values.volume.dataDirs }}
- name: {{ $dir.name }}
mountPath: /{{ $dir.name }}
@@ -119,7 +119,7 @@ spec:
{{- end }}
-dir {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}/{{$dir.name}}{{end}} \
{{- if .Values.volume.idx }}
-dir.idx= /idx \
-dir.idx=/idx \
{{- end }}
-max {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}{{$dir.maxVolumes}}{{end}} \
{{- if .Values.volume.rack }}