fix for postgres volume mount, not available when persistence is not enabled
This commit is contained in:
parent
d4d9d5931d
commit
039c9993f6
@ -116,10 +116,12 @@ spec:
|
|||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .resources | indent 12 }}
|
{{ toYaml .resources | indent 12 }}
|
||||||
|
{{- if $.Values.persistence.enabled }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: postgres-nfs
|
- name: postgres-nfs
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
{{- if .Values.persistence.enabled }}
|
{{- if .Values.persistence.enabled }}
|
||||||
|
Loading…
Reference in New Issue
Block a user