Revert " Added conditions for securityContexts (#328)" (#352)

This reverts commit 9cc5728d5b.
This commit is contained in:
Bastian Hofmann
2025-06-25 00:59:54 +02:00
committed by GitHub
parent 64e085026b
commit d61558c735
2 changed files with 0 additions and 6 deletions

View File

@@ -166,12 +166,10 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.containerSecurityContext.enabled }}
{{- with .Values.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.lifecycle }}
lifecycle:
{{- toYaml . | nindent 12 }}
@@ -207,12 +205,10 @@ spec:
{{- if .Values.additionalVolumeMounts }}
{{- toYaml .Values.additionalVolumeMounts | default "" | nindent 10 }}
{{- end}}
{{- if .Values.podSecurityContext.enabled }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

View File

@@ -94,7 +94,6 @@ resources: {}
# memory: 128Mi
containerSecurityContext:
enabled: true
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 2000
@@ -103,7 +102,6 @@ containerSecurityContext:
readOnlyRootFilesystem: true
podSecurityContext:
enabled: true
fsGroup: 3000
fsGroupChangePolicy: Always