mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Optionally set mariadb securityContext (#4464)
This commit is contained in:
committed by
k8s-ci-robot
parent
6fe5940628
commit
30f24eebd9
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -97,5 +97,6 @@ resources:
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||
##
|
||||
securitySettings:
|
||||
enabled: true
|
||||
runAsUser: 1001
|
||||
fsGroup: 1001
|
||||
|
||||
Reference in New Issue
Block a user