mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
28 lines
470 B
YAML
28 lines
470 B
YAML
|
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-05
|
||
|
try:
|
||
|
- error:
|
||
|
file: pod-assert.yaml
|