Skip to content

Commit

Permalink
Merge pull request #104 from cfis/master
Browse files Browse the repository at this point in the history
Support adding additional labels to deployment. See #103
  • Loading branch information
cfis committed Mar 6, 2024
2 parents 9cf63f4 + b14fcd6 commit d4486f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/docker-mailserver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "13.3.1"
description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.
name: docker-mailserver
version: 3.0.6
version: 3.0.7
sources:
- https://github.com/docker-mailserver/docker-mailserver-helm
maintainers:
Expand Down
3 changes: 3 additions & 0 deletions charts/docker-mailserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
{{- if .Values.deployment.labels }}
{{ toYaml .Values.deployment.labels | indent 4 }}
{{ end }}
name: {{ template "dockermailserver.fullname" . }}
{{- if .Values.deployment.annotations }}
annotations:
Expand Down
3 changes: 3 additions & 0 deletions charts/docker-mailserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ deployment:
## Optionally add additional annotations to the deployment
annotations: {}

## Optionally add additional labels to the deployment
labels: {}

## Optionally specify a runtimeClassName for the deployment
runtimeClassName:

Expand Down

0 comments on commit d4486f1

Please sign in to comment.