Skip to content

Commit 22d3110

Browse files
committed
Added subPath options for default persistence volumes (#146)
1 parent 922448c commit 22d3110

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ spec:
171171
{{- if $persistence.enabled }}
172172
- name: {{ $name }}
173173
mountPath: {{ $persistence.mountPath }}
174+
subPath: {{ $persistence.subPath }}
174175
{{- end }}
175176
{{- end }}
176177

charts/docker-mailserver/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,13 @@ deployment:
282282
# volumeMounts:
283283
# - name: extra-storage
284284
# mountPath: /mnt/extra-storage
285+
# subPath: another-folder
285286

286287
## Optionally specify a list of extra mounts to add (normally used with extraVolumes)
287288
extraVolumeMounts: []
288289
# - name: extra-storage
289290
# mountPath: /mnt/extra-storage
291+
# subPath: another-folder
290292

291293
## Optionally specify a list of extra volumes to add
292294
extraVolumes: []
@@ -327,6 +329,7 @@ persistence:
327329
enabled: true
328330
existingClaim: ""
329331
mountPath: /tmp/docker-mailserver
332+
subPath: ""
330333
size: "1Mi"
331334
annotations: {}
332335
accessModes:
@@ -338,6 +341,7 @@ persistence:
338341
mail-data:
339342
enabled: true
340343
existingClaim: ""
344+
subPath: ""
341345
size: 10Gi
342346
mountPath: /var/mail
343347
annotations: {}
@@ -352,6 +356,7 @@ persistence:
352356
enabled: true
353357
existingClaim: ""
354358
mountPath: /var/mail-state
359+
subPath: ""
355360
size: "1Gi"
356361
annotations: {}
357362
accessModes:
@@ -364,6 +369,7 @@ persistence:
364369
enabled: true
365370
existingClaim: ""
366371
mountPath: /var/log/mail
372+
subPath: ""
367373
size: "1Gi"
368374
annotations: {}
369375
accessModes:

0 commit comments

Comments
 (0)