-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathopenshift-kubernetes-master.yaml
468 lines (468 loc) · 11.9 KB
/
openshift-kubernetes-master.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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
base_images:
base:
name: "4.15"
namespace: ocp
tag: base
base-machine:
name: centos
namespace: openshift
tag: stream9
cli:
name: "4.15"
namespace: ocp
tag: cli
commitchecker:
name: commitchecker
namespace: ci
tag: "4.14"
dev-scripts:
name: test
namespace: ocp-kni
tag: dev-scripts
machine-os-content-base:
name: "4.15"
namespace: ocp
tag: machine-os-content
oc-rpms:
name: "4.15"
namespace: ocp
tag: oc-rpms
ocp_4.15_base-rhel9:
name: "4.15"
namespace: ocp
tag: base-rhel9
ocp_4.15_tools:
name: "4.15"
namespace: ocp
tag: tools
ocp_builder_rhel-8-golang-1.20-openshift-4.15:
name: builder
namespace: ocp
tag: rhel-8-golang-1.20-openshift-4.15
ocp_builder_rhel-9-golang-1.20-openshift-4.15:
name: builder
namespace: ocp
tag: rhel-9-golang-1.20-openshift-4.15
rhel-coreos-base:
name: "4.15"
namespace: ocp
tag: rhel-coreos
tools:
name: "4.15"
namespace: ocp
tag: tools
binary_build_commands: openshift-hack/build-go.sh
build_root:
from_repository: true
canonical_go_repository: k8s.io/kubernetes
images:
- dockerfile_path: openshift-hack/images/hyperkube/Dockerfile.rhel
inputs:
ocp_4.15_base-rhel9:
as:
- registry.ci.openshift.org/ocp/4.15:base-rhel9
ocp_builder_rhel-9-golang-1.20-openshift-4.15:
as:
- registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.20-openshift-4.15
to: hyperkube
- dockerfile_path: openshift-hack/images/tests/Dockerfile.rhel
inputs:
ocp_4.15_tools:
as:
- registry.ci.openshift.org/ocp/4.15:tools
ocp_builder_rhel-8-golang-1.20-openshift-4.15:
as:
- registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15
to: kubernetes-tests
- context_dir: openshift-hack/images/os/
inputs:
base-machine-with-rpms:
as:
- centos:stream9
machine-os-content-base:
as:
- registry.svc.ci.openshift.org/openshift/origin-v4.0:machine-os-content
to: machine-os-content
- dockerfile_literal: |
# This uses the new rhel-coreos base image
# https://github.com/openshift/enhancements/blob/master/enhancements/ocp-coreos-layering/ocp-coreos-layering.md
FROM quay.io/centos/centos:stream9 as build
# Sadly rpm-ostree in rhel8 right now doesn't support e.g. `rpm-ostree upgrade openshift-hyperkube`
# in a container https://github.com/coreos/rpm-ostree/issues/4034
RUN ls -al /etc/yum.repos.d && dnf -y install dnf-utils && dnf --disablerepo='*' --enablerepo=built download openshift-hyperkube
# See also https://issues.redhat.com/browse/ART-4352
FROM registry.ci.openshift.org/rhcos-devel/rhel-coreos
COPY --from=build /*.rpm /
# Also delete leftover RPM files; see https://issues.redhat.com/browse/OCPBUGS-6505.
RUN rpm -Uvh --oldpackage /*.rpm && rm -vf /*.rpm /usr/share/rpm/__db.* /usr/share/rpm/.*.lock
inputs:
base-machine-with-rpms:
as:
- quay.io/centos/centos:stream9
rhel-coreos-base:
as:
- registry.ci.openshift.org/rhcos-devel/rhel-coreos
to: rhel-coreos
- context_dir: build/pause
dockerfile_path: Dockerfile.Rhel
inputs:
ocp_4.15_base-rhel9:
as:
- registry.ci.openshift.org/ocp/4.15:base-rhel9
ocp_builder_rhel-8-golang-1.20-openshift-4.15:
as:
- registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15
ocp_builder_rhel-9-golang-1.20-openshift-4.15:
as:
- registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.20-openshift-4.15
to: pod
promotion:
additional_images:
artifacts: artifacts
excluded_images:
- machine-os-content
- rhel-coreos
name: "4.15"
namespace: ocp
raw_steps:
- pipeline_image_cache_step:
commands: |
mkdir -p _output/local/releases; touch _output/local/releases/CHECKSUM; echo $'FROM bin AS bin\nFROM rpms AS rpms\nFROM centos:7 \nCOPY --from=bin /go/src/k8s.io/kubernetes/_output/local/releases /srv/zips/ \nCOPY --from=oc-rpms /go/src/github.com/openshift/oc/_rpmbuild/SOURCES/* /srv/zips/ \nCOPY --from=rpms /go/src/k8s.io/kubernetes/_output/local/releases/rpms/* /srv/repo/ \nCOPY --from=oc-rpms /go/src/github.com/openshift/oc/_rpmbuild/RPMS/x86_64/* /srv/repo/ ' > _output/local/releases/Dockerfile; openshift-hack/build-go.sh;
from: bin
to: bin-cross
- project_directory_image_build_step:
from: base
inputs:
bin-cross:
as:
- bin
paths:
- destination_dir: .
source_path: /go/src/k8s.io/kubernetes/_output/local/releases/Dockerfile
oc-rpms:
as:
- oc-rpms
rpms:
as:
- rpms
src: {}
optional: true
to: artifacts
- output_image_tag_step:
from: artifacts
optional: true
to:
name: stable
namespace: ""
tag: artifacts
- rpm_image_injection_step:
from: base
to: base-with-rpms
- rpm_image_injection_step:
from: base-machine
to: base-machine-with-rpms
releases:
initial:
integration:
name: "4.15"
namespace: ocp
latest:
integration:
include_built_images: true
name: "4.15"
namespace: ocp
resources:
'*':
requests:
cpu: 100m
memory: 4Gi
artifacts:
requests:
cpu: 100m
memory: 100Mi
bin:
requests:
cpu: "3"
memory: 7Gi
bin-cross:
requests:
cpu: "3"
memory: 8Gi
cmd:
requests:
cpu: "4"
memory: 8Gi
hyperkube:
requests:
cpu: "3"
memory: 7Gi
hypershift:
requests:
cpu: "3"
memory: 7Gi
integration:
requests:
cpu: "6"
memory: 14Gi
k8s-e2e-conformance-aws:
requests:
cpu: "1"
memory: 300Mi
rpms:
requests:
cpu: "4"
memory: 8Gi
tests:
requests:
cpu: "3"
memory: 7Gi
unit:
requests:
cpu: "6"
memory: 8Gi
verify:
requests:
cpu: "3"
memory: 8Gi
rpm_build_commands: openshift-hack/build-rpms.sh
tests:
- as: unit
commands: ARTIFACTS="${ARTIFACT_DIR}" TMPDIR=/tmp/volume openshift-hack/test-go.sh
container:
from: src
memory_backed_volume:
size: 8Gi
- as: integration
commands: ARTIFACTS="${ARTIFACT_DIR}" TMPDIR=/tmp/volume openshift-hack/test-integration.sh
container:
from: src
memory_backed_volume:
size: 6Gi
- as: verify
commands: ARTIFACTS="${ARTIFACT_DIR}" TMPDIR=/tmp/volume openshift-hack/verify.sh
container:
from: src
- as: verify-commits
commands: |
commitchecker --start ${PULL_BASE_SHA:-master}
container:
from: commitchecker
- as: k8s-e2e-gcp-ovn
steps:
cluster_profile: gcp-openshift-gce-devel-ci-2
workflow: openshift-kubernetes-e2e-gcp
- as: k8s-e2e-gcp-five-control-plane-replicas
optional: true
steps:
cluster_profile: gcp-openshift-gce-devel-ci-2
env:
CONTROL_PLANE_REPLICAS: "5"
workflow: openshift-kubernetes-e2e-gcp
- as: k8s-e2e-gcp-serial
steps:
cluster_profile: gcp-openshift-gce-devel-ci-2
observers:
enable:
- observers-resource-watch
workflow: openshift-kubernetes-e2e-gcp-serial
- as: k8s-e2e-aws
optional: true
steps:
cluster_profile: aws
workflow: openshift-kubernetes-e2e-aws
- as: k8s-e2e-aws-ovn-serial
optional: true
steps:
cluster_profile: aws
workflow: openshift-kubernetes-e2e-aws-serial
- as: e2e-aws
optional: true
steps:
cluster_profile: aws
workflow: openshift-e2e-aws
- as: e2e-gcp
steps:
cluster_profile: gcp-openshift-gce-devel-ci-2
workflow: openshift-e2e-gcp
- as: e2e-aws-ovn
optional: true
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-ovn
- as: e2e-azure
optional: true
steps:
cluster_profile: azure4
workflow: openshift-e2e-azure
- as: e2e-agnostic-ovn-cmd
optional: true
steps:
cluster_profile: azure4
env:
TEST_SUITE: openshift/test-cmd
workflow: openshift-e2e-azure
- as: e2e-aws-disruptive
optional: true
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-disruption
- as: e2e-aws-jenkins
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-jenkins
- as: e2e-gcp-ovn-upgrade
steps:
cluster_profile: gcp-openshift-gce-devel-ci-2
workflow: openshift-upgrade-gcp
- as: e2e-aws-ovn-upgrade
run_if_changed: ^(openshift-hack/images/hyperkube/.*|)$
steps:
cluster_profile: aws
workflow: openshift-upgrade-aws
- as: e2e-azure-ovn-upgrade
run_if_changed: ^(openshift-hack/images/hyperkube/.*|)$
steps:
cluster_profile: azure4
workflow: openshift-upgrade-azure
- as: e2e-aws-ovn-downgrade
run_if_changed: ^(openshift-hack/images/hyperkube/.*|)$
steps:
cluster_profile: aws
dependencies:
OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE: release:latest
OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE: release:initial
workflow: openshift-upgrade-aws
- as: e2e-aws-ovn-serial
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-serial
timeout: 5h0m0s
- as: e2e-aws-csi
optional: true
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-csi
- as: e2e-vsphere
optional: true
steps:
cluster_profile: vsphere-2
env:
TEST_SUITE: openshift/conformance/parallel
workflow: openshift-e2e-vsphere
- as: k8s-e2e-conformance-aws
steps:
cluster_profile: aws
test:
- as: test
cli: latest
commands: openshift-hack/conformance-k8s.sh
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: k8s-conformance
interval: 48h
steps:
cluster_profile: aws
test:
- as: test
cli: latest
commands: openshift-hack/conformance-k8s.sh
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- as: e2e-aws-multitenant
optional: true
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-sdn-multi
- as: e2e-metal-ipi
cluster: build05
optional: true
steps:
cluster_profile: equinix-ocp-metal
env:
DEVSCRIPTS_CONFIG: |
IP_STACK=v4
NETWORK_TYPE=OpenShiftSDN
workflow: baremetalds-e2e
- as: e2e-metal-ipi-ovn-ipv6
cluster: build05
optional: true
steps:
cluster_profile: equinix-ocp-metal
env:
DEVSCRIPTS_CONFIG: |
IP_STACK=v6
NETWORK_TYPE=OVNKubernetes
workflow: baremetalds-e2e
- as: e2e-metal-ipi-ovn-dualstack
cluster: build05
optional: true
steps:
cluster_profile: equinix-ocp-metal
env:
DEVSCRIPTS_CONFIG: |
IP_STACK=v4v6
NETWORK_TYPE=OVNKubernetes
workflow: baremetalds-e2e
- as: configmap-scale
steps:
cluster_profile: aws
workflow: openshift-perfscale-e2e-configmap-scale
- as: e2e-aws-ovn-fips
steps:
cluster_profile: aws
env:
FIPS_ENABLED: "true"
TEST_SUITE: openshift/conformance/parallel
pre:
- chain: ipi-aws-pre
- ref: fips-check
test:
- ref: openshift-e2e-test
workflow: ipi-aws
- as: e2e-aws-single-node
optional: true
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-single-node
- as: e2e-openstack
optional: true
run_if_changed: ^(staging/src/k8s.io/legacy-cloud-providers/openstack)
steps:
cluster_profile: openstack-vexxhost
env:
BASE_DOMAIN: shiftstack.devcluster.openshift.com
CONFIG_TYPE: minimal
TEST_SUITE: openshift/conformance/parallel
workflow: openshift-e2e-openstack-ipi
- as: e2e-openstack-csi-cinder
optional: true
steps:
cluster_profile: openstack-vh-mecha-central
workflow: openshift-e2e-openstack-csi-cinder
- as: e2e-openstack-csi-manila
optional: true
steps:
cluster_profile: openstack-vh-mecha-central
workflow: openshift-e2e-openstack-csi-manila
- as: e2e-aws-ovn-cgroupsv2
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-cgroupsv2
- as: e2e-aws-ovn-crun
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-crun
- as: e2e-aws-crun-wasm
steps:
cluster_profile: aws
workflow: openshift-e2e-aws-crun-wasm
zz_generated_metadata:
branch: master
org: openshift
repo: kubernetes