diff --git a/charts/docker-mailserver/Chart.yaml b/charts/docker-mailserver/Chart.yaml index 3317ee60..444c0a07 100644 --- a/charts/docker-mailserver/Chart.yaml +++ b/charts/docker-mailserver/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "14.0.0" description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker. name: docker-mailserver -version: 4.0.1 +version: 4.0.3 sources: - https://github.com/docker-mailserver/docker-mailserver-helm maintainers: diff --git a/charts/docker-mailserver/templates/deployment.yaml b/charts/docker-mailserver/templates/deployment.yaml index 4b71b4ce..9325eda3 100644 --- a/charts/docker-mailserver/templates/deployment.yaml +++ b/charts/docker-mailserver/templates/deployment.yaml @@ -80,6 +80,18 @@ spec: {{- end }} {{- end }} + # Extra volumes + {{- with .Values.deployment.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} + + {{- if .Values.deployment.initContainers }} + initContainers: + {{- with .Values.deployment.initContainers }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + containers: - name: docker-mailserver image: {{ .Values.image.name }}:{{ default .Chart.AppVersion .Values.image.tag }} @@ -147,6 +159,11 @@ spec: {{- end }} {{- end }} + # Mount Extra Volumes + {{- with $.Values.deployment.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} + livenessProbe: exec: command: diff --git a/charts/docker-mailserver/values.yaml b/charts/docker-mailserver/values.yaml index 973a9acb..0a850cf1 100644 --- a/charts/docker-mailserver/values.yaml +++ b/charts/docker-mailserver/values.yaml @@ -272,6 +272,27 @@ deployment: ## Optionally specify tolerations for the deployment tolerations: [] + ## Optionally specify initContainers + initContainers: [] + # - name: init + # image: alpine:3 + # command: [sh, -c] + # args: + # - echo "Hello, world!" > /mnt/extra-storage/test + # volumeMounts: + # - name: extra-storage + # mountPath: /mnt/extra-storage + + ## Optionally specify a list of extra mounts to add (normally used with extraVolumes) + extraVolumeMounts: [] + # - name: extra-storage + # mountPath: /mnt/extra-storage + + ## Optionally specify a list of extra volumes to add + extraVolumes: [] + # - name: extra-storage + # emptyDir: {} + service: ## What scope the service should be exposed in. One of: ## - LoadBalancer (to the world)