From 1dcddd916123cc32a2f4725514931d81ffe5d2a0 Mon Sep 17 00:00:00 2001 From: obeyler Date: Sat, 8 Dec 2018 23:42:22 +0100 Subject: [PATCH] Add securityContext (#9821) Signed-off-by: olivier beyler --- incubator/gogs/Chart.yaml | 2 +- incubator/gogs/templates/deployment.yaml | 4 ++++ incubator/gogs/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/incubator/gogs/Chart.yaml b/incubator/gogs/Chart.yaml index 5fef77abc8..a6feb94e8a 100644 --- a/incubator/gogs/Chart.yaml +++ b/incubator/gogs/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: 'Gogs: Go Git Service' name: gogs -version: 0.7.2 +version: 0.7.3 appVersion: 0.11.66 home: https://gogs.io/ icon: https://gogs.io/img/favicon.ico diff --git a/incubator/gogs/templates/deployment.yaml b/incubator/gogs/templates/deployment.yaml index 1ec70ab1b0..c91f6ef9f7 100644 --- a/incubator/gogs/templates/deployment.yaml +++ b/incubator/gogs/templates/deployment.yaml @@ -16,6 +16,10 @@ spec: labels: app: {{ template "gogs.fullname" . }} spec: + {{- with .Values.securityContext }} + securityContext: +{{ toYaml . | indent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/incubator/gogs/values.yaml b/incubator/gogs/values.yaml index 3bfff0d313..2cb5b4191e 100644 --- a/incubator/gogs/values.yaml +++ b/incubator/gogs/values.yaml @@ -332,3 +332,5 @@ postgresql: ## Enable PostgreSQL persistence using Persistent Volume Claims. ## enabled: true +## Security context +securityContext: {}