Skip to content

Commit 5fab3b9

Browse files
committed
Added if-check when subPath is present or not
1 parent bfcd6f1 commit 5fab3b9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ spec:
171171
{{- if $persistence.enabled }}
172172
- name: {{ $name }}
173173
mountPath: {{ $persistence.mountPath }}
174-
subPath: {{ $persistence.subPath }}
174+
{{- if .Values.persistence.subPath }}
175+
subPath: {{ .Values.persistence.subPath }}
176+
{{- end }}
175177
{{- end }}
176178
{{- end }}
177179

0 commit comments

Comments
 (0)