Skip to content

Commit

Permalink
[stable/mailhog] add runAsUser to allow using PSP (helm#7822)
Browse files Browse the repository at this point in the history
* [stable/mailhog] add runAsUser to allow using PSP
otherwise yields Error: container has runAsNonRoot and image has non-numeric user (mailhog), cannot verify user is non-root

Signed-off-by: Krzysztof Nazarewski <[email protected]>

* Update Chart.yaml

Signed-off-by: Reinhard Nägele <[email protected]>
  • Loading branch information
nazarewk authored and k8s-ci-robot committed Sep 20, 2018
1 parent bc11729 commit 00b4cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/mailhog/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: An e-mail testing tool for developers
name: mailhog
appVersion: 1.0.0
version: 2.2.0
version: 2.3.0
keywords:
- mailhog
- mail
Expand Down
2 changes: 2 additions & 0 deletions stable/mailhog/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
app: {{ template "mailhog.name" . }}
release: {{ .Release.Name }}
spec:
securityContext:
runAsUser: 1000
containers:
- name: {{ template "mailhog.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down

0 comments on commit 00b4cb1

Please sign in to comment.