1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-07 00:17:13 +00:00
kyverno/test/conformance/chainsaw/cleanup/policy/cleanup-pod/chainsaw-test.yaml
Charles-Edouard Brétéché 4a557ba2cf
chore: convert chainsaw tests to Test resource (#9094)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-06 16:27:10 +00:00

31 lines
533 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: cleanup-pod
spec:
steps:
- name: step-01
try:
- apply:
file: rbac.yaml
- name: step-02
try:
- apply:
file: pod.yaml
- assert:
file: pod-assert.yaml
- name: step-03
try:
- apply:
file: policy.yaml
- assert:
file: policy.yaml
- name: step-04
try:
- sleep:
duration: 1m5s
- name: step-05
try:
- error:
file: pod-assert.yaml