Skip to content

Commit b14fcd6

Browse files
committed
Support adding additional labels to deployment. See #103
1 parent 9cf63f4 commit b14fcd6

3 files changed

Lines changed: 7 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: v2
22
appVersion: "13.3.1"
33
description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.
44
name: docker-mailserver
5-
version: 3.0.6
5+
version: 3.0.7
66
sources:
77
- https://github.com/docker-mailserver/docker-mailserver-helm
88
maintainers:

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ metadata:
77
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
88
heritage: "{{ .Release.Service }}"
99
release: "{{ .Release.Name }}"
10+
{{- if .Values.deployment.labels }}
11+
{{ toYaml .Values.deployment.labels | indent 4 }}
12+
{{ end }}
1013
name: {{ template "dockermailserver.fullname" . }}
1114
{{- if .Values.deployment.annotations }}
1215
annotations:

charts/docker-mailserver/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ deployment:
2828
## Optionally add additional annotations to the deployment
2929
annotations: {}
3030

31+
## Optionally add additional labels to the deployment
32+
labels: {}
33+
3134
## Optionally specify a runtimeClassName for the deployment
3235
runtimeClassName:
3336

0 commit comments

Comments
 (0)