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:
skrieschandtechknowlogick authored and Lunny Xiao committed 2021-07-17 10:47:41 +08:00
1 parent 6342a4dabd
commit 9e7387f0f8
1 file changed
+3 -1
+3 -1
View File
@@ -244,7 +244,9 @@ spec:
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
- name: data
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }}
{{- with .Values.persistence.existingClaim }}
claimName: {{ tpl . $ }}
{{- end }}
{{- else if not .Values.persistence.enabled }}
- name: data
emptyDir: {}