mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-09 00:07:47 +02:00
set AllowPrivilegeEscalation on container securityContext (#1326)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user