Skip to content

Commit 81ba21d

Browse files
authored
Merge pull request docker-mailserver#159 from cfis/master
Fix metrics - docker-mailserver#158
2 parents f7a46de + 1ef20bd commit 81ba21d

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

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

charts/docker-mailserver/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,14 @@ If you do not enable the PROXY protocol and your mail server is not exposed usin
179179

180180
## Persistence
181181

182-
By default, the Chart assumes there are for Persistent volumes. Thus it requests four PersistentVolumeClaims which are defined using the `persistent_volume_claims` key. Each PVC can be set to an existing claim by settin the `persistent_volume_claims.<volume_name>.existing_claim` key or a new cliams. To disable creation of a PVC, set `persistent_volume_claims.<volume_name>.enabled` to false. The default PVCs have the following characteristics:
182+
Docker-mailserver assumes there are [four](https://docker-mailserver.github.io/docker-mailserver/latest/config/advanced/optional-config/#volumes) mounted volumes:
183+
184+
* mail-config
185+
* mail-data
186+
* mail-state
187+
* mail-log
188+
189+
Therefore the chart requests four PersistentVolumeClaims under the `persistent_volume_claims` key. Each PVC can be set to an existing claim by setting the `persistent_volume_claims.<volume_name>.existing_claim` key or a new claims. To disable creation of a PVC, set `persistent_volume_claims.<volume_name>.enabled` to false. The default PVCs have the following characteristics:
183190

184191
| PVC Name | Default Size | Mount | Description |
185192
| ---------- | ------- | ----------------------- | -------------------------------------|
@@ -188,7 +195,7 @@ By default, the Chart assumes there are for Persistent volumes. Thus it requests
188195
| mail-state | 1Gi | /var/mail-state | Stores [state](https://docker-mailserver.github.io/docker-mailserver/latest/faq/#what-about-the-docker-datadmsmail-state-directory) for mail services |
189196
| mail-log | 1Gi | /var/log/mail | Stores log files |
190197

191-
The PVCs are then mounted to `volumeMounts` via the `persistence` key. Each `volumeMount` must specify a volume name and mount path. It is also possbile to set a subpath via the `subPath` key.
198+
The PVCs are mounted to `volumeMounts` via the `persistence` key. Each `volumeMount` must specify a volume name and mount path. It is also possbile to set a subpath via the `subPath` key.
192199

193200
Extra volumes and volume mounts may be added using the `extraVolumes` and `extraVolumeMounts` keys.
194201

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,7 @@ spec:
273273

274274
volumeMounts:
275275
{{- range $name, $persistence := pick .Values.persistence "mail-log" "mail-state" }}
276-
{{- if $persistence.enabled }}
277-
- name: {{ $name }}
278-
mountPath: {{ $persistence.mountPath }}
279-
{{- end }}
276+
- name: {{ $name }}
277+
mountPath: {{ $persistence.mountPath }}
280278
{{- end }}
281279
{{- end }}

0 commit comments

Comments
 (0)