mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
* 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>
35 lines
744 B
YAML
Executable file
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
|