mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-25 17:13:48 +00:00
27 lines
494 B
YAML
27 lines
494 B
YAML
|
apiVersion: chainsaw.kyverno.io/v1alpha1
|
||
|
kind: Test
|
||
|
metadata:
|
||
|
name: apicall-correct
|
||
|
spec:
|
||
|
steps:
|
||
|
- try:
|
||
|
- apply:
|
||
|
file: namespace.yaml
|
||
|
- apply:
|
||
|
file: main-deployment.yaml
|
||
|
- apply:
|
||
|
file: gctxentry.yaml
|
||
|
- sleep:
|
||
|
duration: 3s
|
||
|
- name: create policy
|
||
|
try:
|
||
|
- create:
|
||
|
file: policy.yaml
|
||
|
- sleep:
|
||
|
duration: 3s
|
||
|
- try:
|
||
|
- apply:
|
||
|
file: new-deployment.yaml
|
||
|
- assert:
|
||
|
file: new-deployment-exists.yaml
|