-
Notifications
You must be signed in to change notification settings - Fork 1
/
trex-chaos-test.yaml
113 lines (112 loc) · 3.51 KB
/
trex-chaos-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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: deploy-operator
spec:
description: |
An integration test which provisions an ephemeral Hypershift cluster and deploys an Operator
bundle from a Konflux snapshot.
params:
- description: Snapshot of the application
name: SNAPSHOT
default: '{"components": [{"name":"test-app", "containerImage": "quay.io/example/repo:latest"}]}'
type: string
- description: Namespace where the the Operator bundle will be deployed.
name: NAMESPACE
default: default
type: string
- name: chaostest
default: ["application-outages" ]
tasks:
- name: parse-metadata
taskRef:
resolver: git
params:
- name: url
value: https://github.com/konflux-ci/integration-examples
- name: revision
value: main
- name: pathInRepo
value: tasks/test_metadata.yaml
params:
- name: SNAPSHOT
value: $(params.SNAPSHOT)
- name: provision-eaas-space
runAfter:
- parse-metadata
taskRef:
resolver: git
params:
- name: url
value: https://github.com/konflux-ci/build-definitions.git
- name: revision
value: main
- name: pathInRepo
value: task/eaas-provision-space/0.1/eaas-provision-space.yaml
params:
- name: ownerName
value: $(context.pipelineRun.name)
- name: ownerUid
value: $(context.pipelineRun.uid)
- name: provision-cluster
runAfter:
- provision-eaas-space
taskRef:
resolver: git
params:
- name: url
value: https://github.com/krkn-chaos/konflux-chaos.git
- name: revision
value: main
- name: pathInRepo
value: task/task-provision-cluster.yaml
params:
- name: eaasSpaceSecretRef
value: $(tasks.provision-eaas-space.results.secretRef)
- name: deploy-app-krkn
runAfter:
- provision-cluster
params:
- name: bundleImage
value: "$(tasks.parse-metadata.results.component-container-image)"
- name: SNAPSHOT
value: $(params.SNAPSHOT)
- name: eaasSpaceSecretRef
value: $(tasks.provision-eaas-space.results.secretRef)
- name: clusterName
value: "$(tasks.provision-cluster.results.clusterName)"
matrix:
params:
- name: chaostest
value: $(params.chaostest[*])
taskRef:
resolver: git
params:
- name: url
value: https://github.com/krkn-chaos/konflux-chaos.git
- name: revision
value: main
- name: pathInRepo
value: task/task-run-app.yaml
- name: run-krkn
runAfter:
- deploy-app-krkn
params:
- name: eaasSpaceSecretRef
value: $(tasks.provision-eaas-space.results.secretRef)
- name: clusterName
value: "$(tasks.provision-cluster.results.clusterName)"
matrix:
params:
- name: chaostest
value: $(tasks.deploy-app-krkn.results.chaos_test_namespace[*])
taskRef:
resolver: git
params:
- name: url
value: https://github.com/krkn-chaos/konflux-chaos.git
- name: revision
value: main
- name: pathInRepo
value: task/task-run-krkn.yaml