/
kubevirt-hyperconverged-cluster-operator-main__okd.yaml
292 lines (292 loc) · 7.94 KB
/
kubevirt-hyperconverged-cluster-operator-main__okd.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
base_images:
base:
name: "4.16"
namespace: origin
tag: base-rhel9
cli:
name: "4.16"
namespace: origin
tag: cli
cli-operator-sdk:
name: cli-operator-sdk
namespace: ocp
tag: v1.31.0
hco-bundle-reg:
name: hyperconverged-cluster-bundle
namespace: ci
tag: 1.13.0-unstable
ocp_builder_rhel-9-golang-1.22-openshift-4.17:
name: builder
namespace: ocp
tag: rhel-9-golang-1.22-openshift-4.17
binary_build_commands: make install
build_root:
image_stream_tag:
name: release
namespace: openshift
tag: rhel-9-release-golang-1.22-openshift-4.17
images:
- dockerfile_path: build/Dockerfile.okd
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /go/bin/hyperconverged-cluster-operator
to: hyperconverged-cluster-operator
- dockerfile_path: build/Dockerfile.wh.okd
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /go/bin/hyperconverged-cluster-webhook
to: hyperconverged-cluster-webhook
- dockerfile_path: build/Dockerfile.artifacts
optional: true
to: virt-artifacts-server
- dockerfile_path: build/Dockerfile.functest.ci
inputs:
ocp_builder_rhel-9-golang-1.22-openshift-4.17:
as:
- registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17
to: hyperconverged-cluster-functest
- dockerfile_literal: |
FROM src
COPY oc /usr/bin/oc
RUN ln -s /usr/bin/oc /usr/bin/kubectl
RUN dnf install -y jq && dnf clean all
from: src
inputs:
cli:
paths:
- destination_dir: .
source_path: /usr/bin/oc
to: hco-oc-bin-image
- dockerfile_literal: |
FROM src
COPY oc /usr/bin/oc
COPY operator-sdk /usr/local/bin/operator-sdk
RUN ln -s /usr/bin/oc /usr/bin/kubectl
RUN dnf install -y jq && dnf clean all
from: src
inputs:
cli:
paths:
- destination_dir: .
source_path: /usr/bin/oc
cli-operator-sdk:
paths:
- destination_dir: .
source_path: /usr/local/bin/operator-sdk
to: hco-oc-bin-operator-sdk-image
operator:
bundles:
- as: hco-bundle
context_dir: deploy/index-image
dockerfile_path: bundle.Dockerfile
- as: hco-upgrade-operator-sdk-bundle
context_dir: deploy/index-image
dockerfile_path: Dockerfile.bundle.ci-index-image-upgrade
substitutions:
- pullspec: +IMAGE_TO_REPLACE+
with: hyperconverged-cluster-operator
- pullspec: +WEBHOOK_IMAGE_TO_REPLACE+
with: hyperconverged-cluster-webhook
- pullspec: +ARTIFACTS_SERVER_IMAGE_TO_REPLACE+
with: virt-artifacts-server
releases:
initial:
integration:
name: "4.16"
namespace: origin
latest:
integration:
include_built_images: true
name: "4.16"
namespace: origin
resources:
'*':
requests:
cpu: 500m
memory: 1Gi
tests:
- always_run: false
as: hco-e2e-operator-sdk-gcp
optional: true
steps:
cluster_profile: gcp-virtualization
dependencies:
OO_BUNDLE: hco-bundle
env:
COMPUTE_NODE_TYPE: n2-standard-4
OO_INSTALL_NAMESPACE: kubevirt-hyperconverged
test:
- as: deploy-cr
commands: |
make deploy_cr
from: hco-oc-bin-image
resources:
requests:
cpu: 500m
memory: 1Gi
- as: e2e-test
commands: |
GINKGO_LABELS='!SINGLE_NODE_ONLY' make functest
dependencies:
- env: FUNCTEST_IMAGE
name: hyperconverged-cluster-functest
- env: IMAGE_FORMAT
name: hyperconverged-cluster-functest
from: hco-oc-bin-image
resources:
requests:
cpu: 500m
memory: 1Gi
workflow: optional-operators-ci-operator-sdk-gcp
- always_run: false
as: hco-e2e-operator-sdk-aws
optional: true
steps:
cluster_profile: aws-virtualization
dependencies:
OO_BUNDLE: hco-bundle
env:
BASE_DOMAIN: cnv-ci.syseng.devcluster.openshift.com
OO_INSTALL_NAMESPACE: kubevirt-hyperconverged
test:
- as: deploy-cr
commands: |
KVM_EMULATION=true make deploy_cr
from: hco-oc-bin-image
resources:
requests:
cpu: 500m
memory: 1Gi
- as: e2e-test
commands: |
GINKGO_LABELS='!SINGLE_NODE_ONLY' make functest
dependencies:
- env: FUNCTEST_IMAGE
name: hyperconverged-cluster-functest
- env: IMAGE_FORMAT
name: hyperconverged-cluster-functest
from: hco-oc-bin-image
resources:
requests:
cpu: 500m
memory: 1Gi
workflow: optional-operators-ci-operator-sdk-aws
- always_run: false
as: hco-e2e-upgrade-operator-sdk-aws
optional: true
steps:
cluster_profile: aws-virtualization
dependencies:
OO_BUNDLE: hco-bundle-reg
env:
BASE_DOMAIN: cnv-ci.syseng.devcluster.openshift.com
INITIAL_VERSION: 1.13.0
OO_INSTALL_NAMESPACE: kubevirt-hyperconverged
test:
- as: deploy-cr
commands: |
export OUTPUT_DIR=${SHARED_DIR}
export CMD=oc
source ./hack/compare_scc.sh
dump_sccs_before
# compressing the SCC files into one tar file, as the CI does not support sub-directories in the SHARED_DIR
tar -C "${SHARED_DIR}" -czvf "${SHARED_DIR}/scc.tar.gz" scc/
KVM_EMULATION=true make deploy_cr
from: hco-oc-bin-operator-sdk-image
resources:
requests:
cpu: 500m
memory: 1Gi
- as: upgrade-bundle
commands: |
# un-compressing to get all the original SCC files from the previous phase
tar -C "${SHARED_DIR}" -xzvf "${SHARED_DIR}/scc.tar.gz"
OUTPUT_DIR=${SHARED_DIR} make upgrade-test-operator-sdk
dependencies:
- env: OO_NEXT_BUNDLE
name: hco-upgrade-operator-sdk-bundle
env:
- name: INITIAL_VERSION
from: hco-oc-bin-operator-sdk-image
grace_period: 45m0s
resources:
requests:
cpu: 500m
memory: 1Gi
- as: e2e-test
commands: |
GINKGO_LABELS='!SINGLE_NODE_ONLY' make functest
dependencies:
- env: FUNCTEST_IMAGE
name: hyperconverged-cluster-functest
from: hco-oc-bin-image
resources:
requests:
cpu: 500m
memory: 1Gi
workflow: optional-operators-ci-operator-sdk-aws
- always_run: false
as: hco-e2e-upgrade-operator-sdk-gcp
optional: true
steps:
cluster_profile: gcp-virtualization
dependencies:
OO_BUNDLE: hco-bundle-reg
env:
COMPUTE_NODE_TYPE: n2-standard-4
INITIAL_VERSION: 1.13.0
OO_INSTALL_NAMESPACE: kubevirt-hyperconverged
test:
- as: deploy-cr
commands: |
export OUTPUT_DIR=${SHARED_DIR}
export CMD=oc
source ./hack/compare_scc.sh
dump_sccs_before
# compressing the SCC files into one tar file, as the CI does not support sub-directories in the SHARED_DIR
tar -C "${SHARED_DIR}" -czvf "${SHARED_DIR}/scc.tar.gz" scc/
make deploy_cr
from: hco-oc-bin-operator-sdk-image
resources:
requests:
cpu: 500m
memory: 1Gi
- as: upgrade-bundle
commands: |
# un-compressing to get all the original SCC files from the previous phase
tar -C "${SHARED_DIR}" -xzvf "${SHARED_DIR}/scc.tar.gz"
OUTPUT_DIR=${SHARED_DIR} make upgrade-test-operator-sdk
dependencies:
- env: OO_NEXT_BUNDLE
name: hco-upgrade-operator-sdk-bundle
env:
- name: INITIAL_VERSION
from: hco-oc-bin-operator-sdk-image
grace_period: 45m0s
resources:
requests:
cpu: 500m
memory: 1Gi
- as: e2e-test
commands: |
GINKGO_LABELS='!SINGLE_NODE_ONLY' make functest
dependencies:
- env: FUNCTEST_IMAGE
name: hyperconverged-cluster-functest
from: hco-oc-bin-image
resources:
requests:
cpu: 500m
memory: 1Gi
workflow: optional-operators-ci-operator-sdk-gcp
zz_generated_metadata:
branch: main
org: kubevirt
repo: hyperconverged-cluster-operator
variant: okd