mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
* feat add chainsaw tests for pod security and exceptions Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> * fix: enable ProcMountType in the kind config Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> --------- Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
21 lines
432 B
YAML
21 lines
432 B
YAML
apiVersion: kyverno.io/v2
|
|
kind: PolicyException
|
|
metadata:
|
|
name: pod-security-exception
|
|
spec:
|
|
exceptions:
|
|
- policyName: psp-restricted-limited
|
|
ruleNames:
|
|
- restricted
|
|
match:
|
|
any:
|
|
- resources:
|
|
kinds:
|
|
- Pod
|
|
podSecurity:
|
|
- controlName: Running as Non-root
|
|
images:
|
|
- '*/istio/proxyv2*'
|
|
restrictedField: spec.initContainers[*].securityContext.runAsNonRoot
|
|
values:
|
|
- "false"
|