Skip to content

Commit

Permalink
Merge pull request #102 from cfis/master
Browse files Browse the repository at this point in the history
Fix error when enabling metrics. #99.
  • Loading branch information
cfis authored Mar 4, 2024
2 parents ec66b33 + 7bfe834 commit 53d9734
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
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.5
version: 3.0.6
sources:
- https://github.com/docker-mailserver/docker-mailserver-helm
maintainers:
Expand Down
23 changes: 11 additions & 12 deletions charts/docker-mailserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ spec:
nodeSelector: {{- toYaml .Values.deployment.nodeSelector | nindent 8 }}
runtimeClassName: {{ .Values.deployment.runtimeClassName }}
priorityClassName: {{ .Values.deployment.priorityClassName }}
restartPolicy: "Always"
serviceAccountName: {{ template "dockermailserver.serviceAccountName" . }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
Expand Down Expand Up @@ -100,6 +101,7 @@ spec:
{{ toYaml .Values.deployment.containerSecurityContext | indent 12 }}

volumeMounts:
# Certificate
{{- if .Values.certificate }}
- name: certificate
mountPath: /tmp/dms/custom-certs
Expand Down Expand Up @@ -128,7 +130,7 @@ spec:
{{- end }}
{{- end }}

# Volumes
# Mount Volumes
{{- range $name, $persistence := .Values.persistence }}
{{- if $persistence.enabled }}
- name: {{ $name }}
Expand Down Expand Up @@ -226,14 +228,11 @@ spec:
{{ toYaml .Values.deployment.containerSecurityContext | indent 12 }}

volumeMounts:
- name: data
mountPath: /var/log/mail
subPath: log
readOnly: true
- name: data
mountPath: /var/mail-state
subPath: mail-state
readOnly: true
{{- end }}

restartPolicy: "Always"
{{- range $name, $persistence := pick .Values.persistence "mail-log" "mail-state" }}
{{- if $persistence.enabled }}
- name: {{ $name }}
mountPath: {{ $persistence.mountPath }}
readonly: true
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 53d9734

Please sign in to comment.