1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 18:06:55 +00:00
kyverno/test/conformance/kuttl/exceptions/events-creation/02-exception.yaml

21 lines
481 B
YAML
Raw Normal View History

apiVersion: v1
kind: Namespace
metadata:
name: policy-exception-events-creation-polex-ns
---
apiVersion: kyverno.io/v2alpha1
kind: PolicyException
metadata:
name: policy-exception-allow-latest
namespace: policy-exception-events-creation-polex-ns
spec:
exceptions:
- policyName: disallow-latest-tag-events-creation
ruleNames:
- validate-image-tag
match:
any:
- resources:
namespaces:
- policy-exception-events-creation-ns