Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
ef827b2c69
commit
e507515766
43 changed files with 895 additions and 128 deletions
|
|
@ -23,6 +23,10 @@ spec:
|
|||
selector:
|
||||
matchLabels:
|
||||
security.policy/allow-root: "true"
|
||||
- resources:
|
||||
namespaceSelector:
|
||||
matchLabels:
|
||||
policy.home.arpa/allow-root: "true"
|
||||
|
||||
validate:
|
||||
message: "Pods must set runAsNonRoot=true."
|
||||
|
|
@ -43,6 +47,10 @@ spec:
|
|||
selector:
|
||||
matchLabels:
|
||||
security.policy/allow-root: "true"
|
||||
- resources:
|
||||
namespaceSelector:
|
||||
matchLabels:
|
||||
policy.home.arpa/allow-root: "true"
|
||||
|
||||
validate:
|
||||
message: "All containers must set runAsNonRoot=true."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue