1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/test/conformance/chainsaw/exceptions/exclude-ephemeral-containers/exception.yaml
Mariam Fahmy 9d28116eb4
fix: allow exceptions to match Pod/ephemeralcontainers by default (#10778)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2024-08-02 12:47:09 +00:00

16 lines
298 B
YAML

apiVersion: kyverno.io/v2
kind: PolicyException
metadata:
name: test-policy-exceptions
spec:
background: true
exceptions:
- policyName: require-run-as-nonroot
ruleNames:
- run-as-non-root
- autogen-run-as-non-root
match:
all:
- resources:
kinds:
- Pod