Allow setting readOnlyRootFilesystem in securityContext (#19437)

This commit is contained in:
Alexander Thaller 2024-04-08 18:31:05 +02:00 committed by GitHub
parent 787c44c39d
commit 78f177b8ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -191,6 +191,10 @@ spec:
value: {{ tpl $val $ | quote }}
{{- end }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- if and .Values.securityContext.enabled .Values.persistence.enabled }}
securityContext:
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem | default false }}
{{- end }}
{{- with .Values.extraContainers }}
{{- if eq (typeOf .) "string" }}
{{- tpl . $ | nindent 8 }}

View File

@ -249,6 +249,7 @@ securityContext:
runAsGroup: 1000
fsGroup: 1000
fsGroupChangePolicy: "OnRootMismatch"
readOnlyRootFilesystem: false
# Additational pod annotations
podAnnotations: {}