Skip to content

Commit 64e9fba

Browse files
authored
add additionalMounts and additionalVolumeMounts to values and deployment. (#40)
This is to simplify injecting dynamic configuration files (for example postfix maps modified by an external program) into the container. Bump chart version to 0.3.1.
1 parent e628a3f commit 64e9fba

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

charts/docker-mailserver/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: "8.0.1"
33
description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.
44
name: docker-mailserver
5-
version: 0.3.2
5+
version: 0.3.3
66
sources:
77
- https://github.com/funkypenguin/helm-docker-mailserver
88
maintainers:

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ spec:
5252
{{- else }}
5353
secretName: {{ template "dockermailserver.fullname" . }}-tls
5454
{{- end }}
55+
{{- end }}
56+
{{ if .Values.additionalVolumes }}
57+
{{- toYaml .Values.additionalVolumes | indent 9 }}
5558
{{- end }}
5659
initContainers:
5760
- name: prep-config
@@ -143,6 +146,9 @@ spec:
143146
readOnly: true
144147
{{- end }}
145148
{{- end }}
149+
{{ if .Values.additionalVolumeMounts }}
150+
{{ toYaml .Values.additionalVolumeMounts | indent 12 }}
151+
{{- end }}
146152
livenessProbe:
147153
exec:
148154
command:

charts/docker-mailserver/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ ssl:
5959
psp:
6060
create: true
6161

62+
## Mount additional volumes into the container. Useful for persistent logs or
63+
## injecting additional config files.
64+
#additionalVolumes:
65+
# - name: "additional"
66+
# emptyDir: {}
67+
#additionalVolumeMounts:
68+
# - name: additional
69+
# mountPath: /additional
70+
6271
demoMode:
6372
# demoMode.enabled ignores the contents of helm-chart/docker-mailserver/config and creates minimal static configuration to be used instead. A single account (user "user@example.com", password "password") will be configured for the purpose of validating core functions and connectivity, before applying user config
6473
enabled: true

0 commit comments

Comments
 (0)