chore(helm): use static mount name

This commit is contained in:
Rajesh Rajendran 2021-10-19 00:38:55 +05:30
parent 8b60e52b65
commit 7026249fb8

View file

@ -50,16 +50,16 @@ spec:
{{- if eq .Values.pvc.name "hostPath" }}
volumeMounts:
- mountPath: {{ .Values.pvc.mountPath }}
name: {{ .Values.pvc.name }}
name: datadir
volumes:
- name: mydir
- name: datadir
hostPath:
# Ensure the file directory is created.
path: {{ .Values.pvc.hostMountPath }}
type: DirectoryOrCreate
{{- else }}
volumeMounts:
- name: {{ .Values.pvc.name }}
- name: datadir
mountPath: {{ .Values.pvc.mountPath }}
volumes:
- name: {{ .Values.pvc.name }}