-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathchainsaw-test.yaml
58 lines (58 loc) · 1.13 KB
/
chainsaw-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: rapidast-ptp
spec:
steps:
- name: step-00
try:
- apply:
file: 00-create-project.yaml
- assert:
file: 00-assert.yaml
- name: step-01
try:
- apply:
file: 01-create-sa.yaml
- assert:
file: 01-assert.yaml
- name: step-02
try:
- script:
timeout: 30s
content: ./create_rapidast_configmap.sh
- assert:
file: 02-assert.yaml
- name: step-03
try:
- apply:
file: 03-rapidast-job.yaml
- sleep:
duration: 60s
- assert:
file: 03-assert.yaml
- name: step-04
try:
- script:
timeout: 6m
content: ./results.sh
finally:
- command:
timeout: 1m
entrypoint: oc
args:
- -n
- rapidast-ptp
- delete
- pod
- rapiterm-ptp
- command:
timeout: 1m
entrypoint: oc
args:
- -n
- rapidast-ptp
- delete
- pod
- --selector=batch.kubernetes.io/job-name=rapidast-job