File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ maintainers:
14
14
url : https://github.com/jordanopensource/charts/
15
15
sources :
16
16
- https://github.com/jordanopensource/charts/tree/main/charts/base
17
- version : 1.2.0
17
+ version : 1.2.1
18
18
appVersion : 1.0.1
Original file line number Diff line number Diff line change 85
85
- name : app-data
86
86
mountPath : {{ .Values.workload.persistence.path }}
87
87
{{- if .Values.workload.persistence.subPath }}
88
- subPath : {{ .Values.master .persistence.subPath }}
88
+ subPath : {{ .Values.workload .persistence.subPath }}
89
89
{{- end }}
90
90
{{- if .Values.workload.volumeMounts }}
91
91
{{- include "base.tplvalues.render" ( dict "value" .Values.workload.volumeMounts "context" $) | nindent 12 }}
@@ -96,20 +96,19 @@ spec:
96
96
{{- include "base.tplvalues.render" ( dict "value" .Values.workload.volumeMounts "context" $) | nindent 12 }}
97
97
{{- end }}
98
98
{{- end }}
99
- {{- if .Values.workload.volumes }}
100
- volumes : {{- include "base.tplvalues.render" ( dict "value" .Values.workload.volumes "context" $) | nindent 8 }}
101
- {{- end }}
102
- {{- if .Values.workload.persistence.enabled }}
99
+ {{- if or .Values.workload.persistence.enabled .Values.workload.volumes }}
103
100
volumes :
101
+ {{- if .Values.workload.persistence.enabled }}
104
102
{{- if .Values.workload.persistence.existingClaim }}
105
103
- name : app-data
106
104
persistentVolumeClaim :
107
- claimName : {{ .Values.workload.persistence.existingClaim . }}
105
+ claimName : {{ .Values.workload.persistence.existingClaim }}
108
106
{{- else }}
109
107
- name : app-data
110
108
persistentVolumeClaim :
111
109
claimName : {{ include "base.names.fullname" . }}
112
110
{{- end }}
111
+ {{- end }}
113
112
{{- if .Values.workload.volumes }}
114
113
{{- include "base.tplvalues.render" ( dict "value" .Values.workload.volumes "context" $) | nindent 8 }}
115
114
{{- end }}
You can’t perform that action at this time.
0 commit comments