Skip to content

Commit 2b9ea33

Browse files
committed
Add deployment annotation
1 parent 9805800 commit 2b9ea33

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

charts/docker-mailserver/Chart.yaml

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

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ metadata:
88
heritage: "{{ .Release.Service }}"
99
release: "{{ .Release.Name }}"
1010
name: {{ template "dockermailserver.fullname" . }}
11+
{{- if .Values.pod.dockermailserver.annotations }}
12+
annotations:
13+
{{ toYaml .Values.deployment.annotations | indent 4 }}
14+
{{ end }}
1115
spec:
1216
replicas: {{ default 2 .Values.deployment.replicas }}
1317
selector:

charts/docker-mailserver/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ livenessTests:
9696
commands:
9797
- "clamscan /tmp/docker-mailserver/TrustedHosts"
9898

99+
deployment:
100+
101+
## Add annotations to the deployment
102+
## Useful for using something like stash to backup data (https://stash.run/docs/v0.9.0-rc.0/guides/latest/auto-backup/workload/)
103+
annotations: {}
104+
99105
pod:
100106
# pod.dockermailserver section refers to the configuration of the docker-mailserver pod itself. Note that teh many environment variables which define the behaviour of docker-mailserver are configured here
101107
dockermailserver:

0 commit comments

Comments
 (0)