Skip to content

Commit 2b11e8b

Browse files
authored
Merge pull request docker-mailserver#125 from johnstarxx/init-containers
Added initContainers
2 parents a95f358 + df548cd commit 2b11e8b

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-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: "14.0.0"
33
description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.
44
name: docker-mailserver
5-
version: 4.0.1
5+
version: 4.0.3
66
sources:
77
- https://github.com/docker-mailserver/docker-mailserver-helm
88
maintainers:

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ spec:
8080
{{- end }}
8181
{{- end }}
8282

83+
# Extra volumes
84+
{{- with .Values.deployment.extraVolumes }}
85+
{{- toYaml . | nindent 8 }}
86+
{{- end }}
87+
88+
{{- if .Values.deployment.initContainers }}
89+
initContainers:
90+
{{- with .Values.deployment.initContainers }}
91+
{{- toYaml . | nindent 8 }}
92+
{{- end }}
93+
{{- end }}
94+
8395
containers:
8496
- name: docker-mailserver
8597
image: {{ .Values.image.name }}:{{ default .Chart.AppVersion .Values.image.tag }}
@@ -147,6 +159,11 @@ spec:
147159
{{- end }}
148160
{{- end }}
149161

162+
# Mount Extra Volumes
163+
{{- with $.Values.deployment.extraVolumeMounts }}
164+
{{- toYaml . | nindent 12 }}
165+
{{- end }}
166+
150167
livenessProbe:
151168
exec:
152169
command:

charts/docker-mailserver/values.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,27 @@ deployment:
272272
## Optionally specify tolerations for the deployment
273273
tolerations: []
274274

275+
## Optionally specify initContainers
276+
initContainers: []
277+
# - name: init
278+
# image: alpine:3
279+
# command: [sh, -c]
280+
# args:
281+
# - echo "Hello, world!" > /mnt/extra-storage/test
282+
# volumeMounts:
283+
# - name: extra-storage
284+
# mountPath: /mnt/extra-storage
285+
286+
## Optionally specify a list of extra mounts to add (normally used with extraVolumes)
287+
extraVolumeMounts: []
288+
# - name: extra-storage
289+
# mountPath: /mnt/extra-storage
290+
291+
## Optionally specify a list of extra volumes to add
292+
extraVolumes: []
293+
# - name: extra-storage
294+
# emptyDir: {}
295+
275296
service:
276297
## What scope the service should be exposed in. One of:
277298
## - LoadBalancer (to the world)

0 commit comments

Comments
 (0)