set AllowPrivilegeEscalation on container securityContext (#1326)

This commit is contained in:
Felix Kunde
2021-01-22 14:06:19 +01:00
committed by GitHub
parent a9b677c957
commit 4ea0b5f432
4 changed files with 26 additions and 21 deletions
@@ -63,6 +63,7 @@ rules:
- services
verbs:
- create
{{- if toString .Values.configKubernetes.spilo_privileged | eq "true" }}
# to run privileged pods
- apiGroups:
- extensions
@@ -72,4 +73,5 @@ rules:
- privileged
verbs:
- use
{{- end }}
{{ end }}
@@ -228,7 +228,8 @@ rules:
verbs:
- get
- create
# to grant privilege to run privileged pods
{{- if toString .Values.configKubernetes.spilo_privileged | eq "true" }}
# to run privileged pods
- apiGroups:
- extensions
resources:
@@ -237,4 +238,5 @@ rules:
- privileged
verbs:
- use
{{- end }}
{{ end }}