1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/test/conformance/chainsaw/globalcontext/not-ready/chainsaw-test.yaml
Charles-Edouard Brétéché 5a0ce6bb67
chore: bump chainsaw (#11161)
* chore: bump chainsaw

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

* more template use

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

* v0.2.10

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

* go mod

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

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-09-17 09:28:33 +00:00

35 lines
744 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: not-ready
spec:
steps:
- name: setup
try:
- apply:
file: namespace.yaml
- apply:
file: main-deployment.yaml
- apply:
file: gctxentry.yaml
- sleep:
duration: 3s
- apply:
file: clusterpolicy.yaml
- sleep:
duration: 3s
- assert:
file: clusterpolicy-ready.yaml
- delete:
ref:
apiVersion: kyverno.io/v2alpha1
kind: GlobalContextEntry
name: gctx-not-ready
- sleep:
duration: 3s
- assert:
file: clusterpolicy-failed.yaml
- apply:
file: new-deployment.yaml
- assert:
file: new-deployment-exists.yaml