Skip to content

Commit

Permalink
Genericize securityContext
Browse files Browse the repository at this point in the history
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
  • Loading branch information
funkypenguin committed Apr 20, 2020
1 parent d120d5e commit 964bb07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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: v1
appVersion: "6.3.0"
description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.
name: docker-mailserver
version: 0.2.2-dev4
version: 0.2.2-dev5
sources:
- https://github.com/funkypenguin/docker-mailserver
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/docker-mailserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
resources:
{{ toYaml .Values.resources | indent 12 }}
securityContext:
privileged: {{ default false .Values.pod.dockermailserver.securityContext.privileged }}
{{ toYaml .Values.pod.dockermailserver.securityContext | indent 12 }}
{{- if eq .Values.pod.dockermailserver.enable_fail2ban 1.0 }}
capabilities:
add:
Expand Down
4 changes: 3 additions & 1 deletion charts/docker-mailserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ pod:
## pod.dockermailserver.securityContext defines whether the container should be run in "privileged" mode (essentially, root on the host)
## Ref: http://kubernetes.io/docs/api-reference/v1/definitions/#_v1_securitycontext
## Default: false
privileged:
privileged: false
runAsUser: 10001
runAsGroup: 10001

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

0 comments on commit 964bb07

Please sign in to comment.