Skip to content

Commit c3869ad

Browse files
committed
Remove securityContext (because it breaks docker-mailserver behaviour)
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
1 parent d52b3b2 commit c3869ad

4 files changed

Lines changed: 3 additions & 15 deletions

File tree

README.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ The following table lists the configurable parameters of the docker-mailserver c
210210
| `livenessTests.enabled` | Array of commands to execute in sequence, to determine container health. A non-zero exit of any command is considered a failure | `[ "clamscan /tmp/docker-mailserver/TrustedHosts" ]` |
211211
| `pod.dockermailserver.hostNetwork` | Whether the pod should be connected to the "host" network (a primitive solution to ingress NAT problem) | `false` |
212212
| `pod.dockermailserver.hostPID` | Not really sure. TBD. | `None` |
213-
| `pod.dockermailserver.hostPID` | Not really sure. TBD. | `None` |
214-
| `pod.dockermailserver.securityContext.privileged` | Whether to run this pod in "privileged" mode. | `false` |
213+
| `pod.dockermailserver.hostPID` | Not really sure. TBD. | `None` | |
215214
| `service.type` | What scope the service should be exposed in (*LoadBalancer/NodePort/ClusterIP*) | `NodePort` |
216215
| `service.loadBalancer.publicIp` | The public IP to assign to the service (*if LoadBalancer*) scope selected above | `None` |
217216
| `service.loadBalancer.allowedIps` | The IPs allowed to access the sevice, in CIDR format (*if LoadBalancer*) scope selected above | `[ "0.0.0.0/0" ]` |

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.2
5+
version: 0.2.3
66
sources:
77
- https://github.com/funkypenguin/docker-mailserver
88
maintainers:

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ spec:
5353
- name: prep-config
5454
image: {{ .Values.initContainer.image.name }}:{{ .Values.initContainer.image.tag }}
5555
imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }}
56-
command: [ 'sh','-c', 'cp /tmp/configmaps/* /tmp/docker-mailserver -rfpvL' ]
57-
securityContext:
58-
{{ toYaml .Values.pod.dockermailserver.securityContext | indent 12 }}
56+
command: [ 'sh','-c', 'cp /tmp/configmaps/* /tmp/docker-mailserver -rfpvL' ]
5957
volumeMounts:
6058
- name: configmap
6159
mountPath: /tmp/configmaps
@@ -72,8 +70,6 @@ spec:
7270
imagePullPolicy: {{ .Values.image.pullPolicy }}
7371
resources:
7472
{{ toYaml .Values.resources | indent 12 }}
75-
securityContext:
76-
{{ toYaml .Values.pod.dockermailserver.securityContext | indent 12 }}
7773
{{- if eq .Values.pod.dockermailserver.enable_fail2ban 1.0 }}
7874
capabilities:
7975
add:

charts/docker-mailserver/values.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,6 @@ pod:
114114
## Ref: https://kubernetes.io/docs/api-reference/v1/definitions/#_v1_podspec
115115
# pod.dockermailserver.hostPID defines whether the pod should use the host's PID namespace (default false)
116116
hostPID: false
117-
securityContext:
118-
## pod.dockermailserver.securityContext defines whether the container should be run in "privileged" mode (essentially, root on the host)
119-
## Ref: http://kubernetes.io/docs/api-reference/v1/definitions/#_v1_securitycontext
120-
## Default: false
121-
privileged: false
122-
runAsUser: 10001
123-
runAsGroup: 10001
124117

125118
## The following variables affect the behaviour of docker-mailserver
126119
## See https://github.com/tomav/docker-mailserver#environment-variables for details

0 commit comments

Comments
 (0)