1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/test/conformance/chainsaw/exceptions/good-bad-conditions/chainsaw-test.yaml

34 lines
699 B
YAML
Raw Normal View History

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: conditions
spec:
steps:
- name: create policy
use:
template: ../../_step-templates/create-policy.yaml
with:
bindings:
- name: file
value: policy.yaml
- name: wait policy ready
use:
template: ../../_step-templates/cluster-policy-ready.yaml
with:
bindings:
- name: name
value: max-containers
- name: step-02
try:
- apply:
file: failing-exception.yaml
- apply:
file: passing-exception.yaml
- finally:
- sleep:
duration: 5s
name: step-03
try:
- apply:
file: good-deployment.yaml