From 55603584085152c818ffb782f47f98b94fbf3fad Mon Sep 17 00:00:00 2001 From: Rodrigo Chacon Date: Fri, 5 Jan 2018 08:14:11 +0100 Subject: [PATCH] [stable/redis] Allow customization of securityContext fsGroup/runAsUser fields (#3209) * [stable/redis] Allow customization of securityContext fsGroup/runAsUser fields * [stable/redis] bump Chart version to 1.1.5 --- stable/redis/Chart.yaml | 2 +- stable/redis/templates/deployment.yaml | 4 ++-- stable/redis/values.yaml | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index b0afbeea8d..4eae2a7f1d 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 1.1.4 +version: 1.1.5 appVersion: 4.0.6 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/stable/redis/templates/deployment.yaml b/stable/redis/templates/deployment.yaml index fd5ed38369..6a205ccb2c 100644 --- a/stable/redis/templates/deployment.yaml +++ b/stable/redis/templates/deployment.yaml @@ -21,8 +21,8 @@ spec: {{- end }} spec: securityContext: - runAsUser: 1001 - fsGroup: 1001 + fsGroup: {{ .Values.securityContext.fsGroup }} + runAsUser: {{ .Values.securityContext.runAsUser }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} diff --git a/stable/redis/values.yaml b/stable/redis/values.yaml index ebbb443d2c..929f86eb2c 100644 --- a/stable/redis/values.yaml +++ b/stable/redis/values.yaml @@ -11,6 +11,11 @@ imagePullPolicy: IfNotPresent ## Kubernetes service type serviceType: ClusterIP +## Pod Security Context +securityContext: + fsGroup: 1001 + runAsUser: 1001 + ## Use password authentication usePassword: true