1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/conformance/chainsaw/cel-policy-exceptions/exclude-deployments/chainsaw-test.yaml
Mariam Fahmy a4c10f6bb4
feat: compile and evaluate polex's match conditions (#12113)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2025-02-06 15:30:59 +02:00

33 lines
603 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: exclude-deployments
spec:
steps:
- name: step-01
try:
- create:
file: policy.yaml
- sleep:
duration: 10s
- name: step-02
try:
- apply:
file: ns.yaml
- assert:
file: ns.yaml
- name: step-03
try:
- create:
file: exception.yaml
- sleep:
duration: 10s
- name: step-04
try:
- apply:
file: skipped-deployment.yaml
- apply:
expect:
- check:
($error != null): true
file: bad-deployment.yaml