fixed volumeMounts for statefulset

This commit is contained in:
Jonas Forsberg
2024-11-11 09:38:40 +01:00
parent 2ae5f80aa4
commit f924f986a9
3 changed files with 9 additions and 2 deletions

View File

@@ -40,8 +40,14 @@ create the environment varable list
resources:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.volumeMounts }}
{{- if or .Values.volumeMounts .Values.volumeClaimTemplates }}
volumeMounts:
{{- end }}
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- range $v := .Values.volumeClaimTemplates }}
- name: {{ $v.name }}
mountPath: {{ $v.mountPath }}
{{- end }}
{{- end }}