Fix for #203 possible existingClaim at persistence with namespace variable in the name (#204)

Fix for #203

Co-authored-by: techknowlogick <[email protected]>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/204
Reviewed-by: luhahn <[email protected]>
Reviewed-by: Lunny Xiao <[email protected]>
Co-authored-by: skriesch <[email protected]>
Co-committed-by: skriesch <[email protected]>
This commit is contained in:
skriesch
2021-07-17 10:47:41 +08:00
committed by Lunny Xiao
co-authored by techknowlogick
parent 6342a4dabd
commit 9e7387f0f8
+3 -1
View File
@@ -244,7 +244,9 @@ spec:
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }} {{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
- name: data - name: data
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }} {{- with .Values.persistence.existingClaim }}
claimName: {{ tpl . $ }}
{{- end }}
{{- else if not .Values.persistence.enabled }} {{- else if not .Values.persistence.enabled }}
- name: data - name: data
emptyDir: {} emptyDir: {}