1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 01:16:55 +00:00
kyverno/test/conformance/chainsaw/mutate/e2e/simple-conditional/chainsaw-test.yaml
Charles-Edouard Brétéché 2ceac72f62
chore: convert chainsaw tests to Test resource (#9113)
* chore: convert chainsaw tests to Test resource

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-07 22:38:30 +01:00

25 lines
462 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: simple-conditional
spec:
steps:
- name: step-01
try:
- apply:
file: policy.yaml
- assert:
file: policy-ready.yaml
- name: step-02
try:
- apply:
file: pod1.yaml
- assert:
file: pod1-mutated.yaml
- name: step-03
try:
- apply:
file: pod2.yaml
- assert:
file: pod2-mutated.yaml