2024-02-06 19:03:32 +02:00
|
|
|
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
|
|
kind: Test
|
|
|
|
metadata:
|
|
|
|
creationTimestamp: null
|
2024-02-08 09:46:58 +02:00
|
|
|
name: not-ready
|
2024-02-06 19:03:32 +02:00
|
|
|
spec:
|
|
|
|
steps:
|
|
|
|
- name: setup
|
|
|
|
try:
|
|
|
|
- apply:
|
|
|
|
file: namespace.yaml
|
|
|
|
- apply:
|
|
|
|
file: main-deployment.yaml
|
|
|
|
- apply:
|
|
|
|
file: gctxentry.yaml
|
2024-02-08 09:46:58 +02:00
|
|
|
- assert:
|
|
|
|
file: gctxentry-exists.yaml
|
2024-02-06 19:03:32 +02:00
|
|
|
- apply:
|
|
|
|
file: clusterpolicy.yaml
|
2024-02-08 09:46:58 +02:00
|
|
|
- delete:
|
|
|
|
ref:
|
|
|
|
apiVersion: kyverno.io/v2alpha1
|
|
|
|
kind: GlobalContextEntry
|
|
|
|
name: deployments
|
2024-02-06 19:03:32 +02:00
|
|
|
- assert:
|
|
|
|
file: clusterpolicy-failed.yaml
|
|
|
|
- apply:
|
|
|
|
file: new-deployment.yaml
|
2024-02-08 09:46:58 +02:00
|
|
|
- assert:
|
|
|
|
file: new-deployment-exists.yaml
|