Optionally set mariadb securityContext (#4464)

This commit is contained in:
David Zager
2018-03-26 20:29:02 -07:00
committed by k8s-ci-robot
parent 6fe5940628
commit 30f24eebd9
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mariadb
version: 2.1.14
version: 2.1.15
appVersion: 10.1.31
description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.
keywords:
+2
View File
@@ -13,9 +13,11 @@ spec:
labels:
app: {{ template "mariadb.name" . }}
spec:
{{- if .Values.securitySettings.enabled }}
securityContext:
runAsUser: {{ .Values.securitySettings.runAsUser }}
fsGroup: {{ .Values.securitySettings.fsGroup }}
{{- end}}
initContainers:
- name: "copy-custom-config"
image: "busybox"
+1
View File
@@ -97,5 +97,6 @@ resources:
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
securitySettings:
enabled: true
runAsUser: 1001
fsGroup: 1001