1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/test/conformance/chainsaw/exceptions/psa-run-as-non-root/exception.yaml

22 lines
432 B
YAML
Raw Normal View History

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"