Skip to content

Commit b304977

Browse files
committed
add custom-os-image containerfile paths
1 parent e0dfdcb commit b304977

File tree

2 files changed

+59
-272
lines changed

2 files changed

+59
-272
lines changed

ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-main.yaml

Lines changed: 59 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,22 @@ base_images:
4747
name: builder
4848
namespace: ocp
4949
tag: rhel-9-golang-1.24-openshift-4.21
50-
ocp_os:
50+
ocp_os_rhel_9:
5151
name: "4.21"
5252
namespace: ocp
5353
tag: rhel-coreos
54+
ocp_os_rhel_10:
55+
name: "4.21"
56+
namespace: ocp
57+
tag: rhel-coreos-10
58+
stream9:
59+
name: centos
60+
namespace: openshift
61+
tag: stream9
62+
stream10:
63+
name: centos
64+
namespace: openshift
65+
tag: stream10
5466
build_root:
5567
from_repository: true
5668
images:
@@ -66,26 +78,39 @@ images:
6678
as:
6779
- registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.21
6880
to: machine-config-operator
69-
- dockerfile_literal: |
70-
FROM registry.ci.openshift.org/ocp/4.13:rhel-coreos
71-
RUN curl -L 'https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz' | tar -xvz -C /usr/bin --strip-components=1 ripgrep-13.0.0-x86_64-unknown-linux-musl/rg && \
72-
chmod +x /usr/bin/rg && \
73-
curl -Lo /usr/bin/yq 'https://github.com/mikefarah/yq/releases/download/v4.30.8/yq_linux_amd64' && \
74-
chmod +x /usr/bin/yq && \
75-
cd /etc/yum.repos.d/ && curl -LO https://pkgs.tailscale.com/stable/rhel/8/tailscale.repo && \
76-
rpm-ostree install tailscale && \
77-
systemctl enable tailscaled && \
78-
ostree container commit
79-
from: ocp_os
80-
to: custom-os-image
81-
- dockerfile_literal: |
82-
FROM quay.io/zzlotnik/zacks-openshift-helpers:latest
83-
to: zacks-toolbox
81+
- dockerfile_path: test/custom-os-images/Containerfile.rhel-coreos-9
82+
inputs:
83+
ocp_os_rhel_9:
84+
as:
85+
- base
86+
stream9:
87+
as:
88+
- epel
89+
to: custom-os-image-rhel-9
90+
- dockerfile_path: test/custom-os-images/Containerfile.rhel-coreos-10
91+
inputs:
92+
ocp_os_rhel_10:
93+
as:
94+
- base
95+
stream10:
96+
as:
97+
- epel
98+
to: custom-os-image-rhel-10
99+
- dockerfile_path: Containerfile.helpers-ci
100+
inputs:
101+
ocp_4.21_base_rhel9:
102+
as:
103+
- final
104+
ocp_builder_rhel-9-golang-1.24-openshift-4.21:
105+
as:
106+
- builder
107+
to: devex-helpers
84108
promotion:
85109
to:
86110
- excluded_images:
87-
- custom-os-image
88-
- zacks-toolbox
111+
- custom-os-image-rhel-9
112+
- custom-os-image-rhel-10
113+
- devex-helpers
89114
name: "4.21"
90115
namespace: ocp
91116
releases:
@@ -235,8 +260,10 @@ tests:
235260
cli: latest
236261
commands: make test-e2e
237262
dependencies:
238-
- env: MCO_OS_IMAGE_URL
239-
name: pipeline:custom-os-image
263+
- env: MCO_OS_IMAGE_URL_RHEL_9
264+
name: pipeline:custom-os-image-rhel-9
265+
- env: MCO_OS_IMAGE_URL_RHEL_10
266+
name: pipeline:custom-os-image-rhel-10
240267
from: src
241268
resources:
242269
requests:
@@ -253,8 +280,10 @@ tests:
253280
cli: latest
254281
commands: make test-e2e-1of2
255282
dependencies:
256-
- env: MCO_OS_IMAGE_URL
257-
name: pipeline:custom-os-image
283+
- env: MCO_OS_IMAGE_URL_RHEL_9
284+
name: pipeline:custom-os-image-rhel-9
285+
- env: MCO_OS_IMAGE_URL_RHEL_10
286+
name: pipeline:custom-os-image-rhel-10
258287
from: src
259288
resources:
260289
requests:
@@ -271,8 +300,10 @@ tests:
271300
cli: latest
272301
commands: make test-e2e-2of2
273302
dependencies:
274-
- env: MCO_OS_IMAGE_URL
275-
name: pipeline:custom-os-image
303+
- env: MCO_OS_IMAGE_URL_RHEL_9
304+
name: pipeline:custom-os-image-rhel-9
305+
- env: MCO_OS_IMAGE_URL_RHEL_10
306+
name: pipeline:custom-os-image-rhel-10
276307
from: src
277308
resources:
278309
requests:
@@ -491,8 +522,10 @@ tests:
491522
cli: latest
492523
commands: make test-e2e-single-node
493524
dependencies:
494-
- env: MCO_OS_IMAGE_URL
495-
name: pipeline:custom-os-image
525+
- env: MCO_OS_IMAGE_URL_RHEL_9
526+
name: pipeline:custom-os-image-rhel-9
527+
- env: MCO_OS_IMAGE_URL_RHEL_10
528+
name: pipeline:custom-os-image-rhel-10
496529
from: src
497530
resources:
498531
requests:
@@ -575,102 +608,6 @@ tests:
575608
env:
576609
PROJECT_NAME: machine-config-operator
577610
workflow: openshift-ci-security
578-
- always_run: false
579-
as: e2e-aws-ovn-upgrade-ocb-techpreview
580-
optional: true
581-
steps:
582-
cluster_profile: aws-4
583-
env:
584-
FEATURE_SET: TechPreviewNoUpgrade
585-
test:
586-
- as: get-prelayering-rpmostree-status
587-
commands: |-
588-
#!/usr/bin/env bash
589-
set -xeuo pipefail
590-
run-on-all-nodes --keep-going --exit-zero 'rpm-ostree status'
591-
from: zacks-toolbox
592-
resources:
593-
requests:
594-
cpu: 100m
595-
- as: enable-layering
596-
commands: |-
597-
#!/usr/bin/env bash
598-
set -xeuo pipefail
599-
onclustertesting version
600-
onclustertesting setup ci --inject-yum-repos --containerfile-path <(curl -L https://raw.githubusercontent.com/openshift/machine-config-operator/refs/heads/main/test/e2e-ocl/Containerfile.cowsay)
601-
from: zacks-toolbox
602-
resources:
603-
requests:
604-
cpu: 100m
605-
- as: get-postlayering-rpmostree-status
606-
commands: |-
607-
#!/usr/bin/env bash
608-
set -xeuo pipefail
609-
run-on-all-nodes --keep-going --exit-zero 'rpm-ostree status'
610-
from: zacks-toolbox
611-
resources:
612-
requests:
613-
cpu: 100m
614-
- ref: openshift-e2e-test
615-
- as: get-posttest-rpmostree-status
616-
commands: |-
617-
#!/usr/bin/env bash
618-
set -xeuo pipefail
619-
run-on-all-nodes --keep-going --exit-zero 'rpm-ostree status'
620-
from: zacks-toolbox
621-
resources:
622-
requests:
623-
cpu: 100m
624-
workflow: openshift-upgrade-aws
625-
timeout: 5h0m0s
626-
- always_run: false
627-
as: e2e-aws-ovn-ocb-techpreview
628-
optional: true
629-
steps:
630-
cluster_profile: aws-4
631-
env:
632-
FEATURE_SET: TechPreviewNoUpgrade
633-
test:
634-
- as: get-prelayering-rpmostree-status
635-
commands: |-
636-
#!/usr/bin/env bash
637-
set -xeuo pipefail
638-
run-on-all-nodes --keep-going --exit-zero 'rpm-ostree status'
639-
from: zacks-toolbox
640-
resources:
641-
requests:
642-
cpu: 100m
643-
- as: enable-layering
644-
commands: |-
645-
#!/usr/bin/env bash
646-
set -xeuo pipefail
647-
onclustertesting version
648-
onclustertesting setup ci --inject-yum-repos --containerfile-path <(curl -L https://raw.githubusercontent.com/openshift/machine-config-operator/refs/heads/main/test/e2e-ocl/Containerfile.cowsay)
649-
from: zacks-toolbox
650-
resources:
651-
requests:
652-
cpu: 100m
653-
- as: get-postlayering-rpmostree-status
654-
commands: |-
655-
#!/usr/bin/env bash
656-
set -xeuo pipefail
657-
run-on-all-nodes --keep-going --exit-zero 'rpm-ostree status'
658-
from: zacks-toolbox
659-
resources:
660-
requests:
661-
cpu: 100m
662-
- ref: openshift-e2e-test
663-
- as: get-posttest-rpmostree-status
664-
commands: |-
665-
#!/usr/bin/env bash
666-
set -xeuo pipefail
667-
run-on-all-nodes --keep-going --exit-zero 'rpm-ostree status'
668-
from: zacks-toolbox
669-
resources:
670-
requests:
671-
cpu: 100m
672-
workflow: openshift-e2e-aws
673-
timeout: 5h0m0s
674611
- as: verify-deps
675612
steps:
676613
env:

ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-main-presubmits.yaml

Lines changed: 0 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -504,81 +504,6 @@ presubmits:
504504
secret:
505505
secretName: result-aggregator
506506
trigger: (?m)^/test( | .* )e2e-aws-ovn-fips-op,?($|\s.*)
507-
- agent: kubernetes
508-
always_run: false
509-
branches:
510-
- ^main$
511-
- ^main-
512-
cluster: build10
513-
context: ci/prow/e2e-aws-ovn-ocb-techpreview
514-
decorate: true
515-
decoration_config:
516-
timeout: 5h0m0s
517-
labels:
518-
ci-operator.openshift.io/cloud: aws
519-
ci-operator.openshift.io/cloud-cluster-profile: aws-4
520-
ci.openshift.io/generator: prowgen
521-
pj-rehearse.openshift.io/can-be-rehearsed: "true"
522-
name: pull-ci-openshift-machine-config-operator-main-e2e-aws-ovn-ocb-techpreview
523-
optional: true
524-
rerun_command: /test e2e-aws-ovn-ocb-techpreview
525-
spec:
526-
containers:
527-
- args:
528-
- --gcs-upload-secret=/secrets/gcs/service-account.json
529-
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
530-
- --lease-server-credentials-file=/etc/boskos/credentials
531-
- --report-credentials-file=/etc/report/credentials
532-
- --secret-dir=/secrets/ci-pull-credentials
533-
- --target=e2e-aws-ovn-ocb-techpreview
534-
command:
535-
- ci-operator
536-
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
537-
imagePullPolicy: Always
538-
name: ""
539-
resources:
540-
requests:
541-
cpu: 10m
542-
volumeMounts:
543-
- mountPath: /etc/boskos
544-
name: boskos
545-
readOnly: true
546-
- mountPath: /secrets/ci-pull-credentials
547-
name: ci-pull-credentials
548-
readOnly: true
549-
- mountPath: /secrets/gcs
550-
name: gcs-credentials
551-
readOnly: true
552-
- mountPath: /secrets/manifest-tool
553-
name: manifest-tool-local-pusher
554-
readOnly: true
555-
- mountPath: /etc/pull-secret
556-
name: pull-secret
557-
readOnly: true
558-
- mountPath: /etc/report
559-
name: result-aggregator
560-
readOnly: true
561-
serviceAccountName: ci-operator
562-
volumes:
563-
- name: boskos
564-
secret:
565-
items:
566-
- key: credentials
567-
path: credentials
568-
secretName: boskos-credentials
569-
- name: ci-pull-credentials
570-
secret:
571-
secretName: ci-pull-credentials
572-
- name: manifest-tool-local-pusher
573-
secret:
574-
secretName: manifest-tool-local-pusher
575-
- name: pull-secret
576-
secret:
577-
secretName: registry-pull-credentials
578-
- name: result-aggregator
579-
secret:
580-
secretName: result-aggregator
581-
trigger: (?m)^/test( | .* )e2e-aws-ovn-ocb-techpreview,?($|\s.*)
582507
- agent: kubernetes
583508
always_run: false
584509
branches:
@@ -800,81 +725,6 @@ presubmits:
800725
secret:
801726
secretName: result-aggregator
802727
trigger: (?m)^/test( | .* )e2e-aws-ovn-upgrade-ipsec,?($|\s.*)
803-
- agent: kubernetes
804-
always_run: false
805-
branches:
806-
- ^main$
807-
- ^main-
808-
cluster: build10
809-
context: ci/prow/e2e-aws-ovn-upgrade-ocb-techpreview
810-
decorate: true
811-
decoration_config:
812-
timeout: 5h0m0s
813-
labels:
814-
ci-operator.openshift.io/cloud: aws
815-
ci-operator.openshift.io/cloud-cluster-profile: aws-4
816-
ci.openshift.io/generator: prowgen
817-
pj-rehearse.openshift.io/can-be-rehearsed: "true"
818-
name: pull-ci-openshift-machine-config-operator-main-e2e-aws-ovn-upgrade-ocb-techpreview
819-
optional: true
820-
rerun_command: /test e2e-aws-ovn-upgrade-ocb-techpreview
821-
spec:
822-
containers:
823-
- args:
824-
- --gcs-upload-secret=/secrets/gcs/service-account.json
825-
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
826-
- --lease-server-credentials-file=/etc/boskos/credentials
827-
- --report-credentials-file=/etc/report/credentials
828-
- --secret-dir=/secrets/ci-pull-credentials
829-
- --target=e2e-aws-ovn-upgrade-ocb-techpreview
830-
command:
831-
- ci-operator
832-
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
833-
imagePullPolicy: Always
834-
name: ""
835-
resources:
836-
requests:
837-
cpu: 10m
838-
volumeMounts:
839-
- mountPath: /etc/boskos
840-
name: boskos
841-
readOnly: true
842-
- mountPath: /secrets/ci-pull-credentials
843-
name: ci-pull-credentials
844-
readOnly: true
845-
- mountPath: /secrets/gcs
846-
name: gcs-credentials
847-
readOnly: true
848-
- mountPath: /secrets/manifest-tool
849-
name: manifest-tool-local-pusher
850-
readOnly: true
851-
- mountPath: /etc/pull-secret
852-
name: pull-secret
853-
readOnly: true
854-
- mountPath: /etc/report
855-
name: result-aggregator
856-
readOnly: true
857-
serviceAccountName: ci-operator
858-
volumes:
859-
- name: boskos
860-
secret:
861-
items:
862-
- key: credentials
863-
path: credentials
864-
secretName: boskos-credentials
865-
- name: ci-pull-credentials
866-
secret:
867-
secretName: ci-pull-credentials
868-
- name: manifest-tool-local-pusher
869-
secret:
870-
secretName: manifest-tool-local-pusher
871-
- name: pull-secret
872-
secret:
873-
secretName: registry-pull-credentials
874-
- name: result-aggregator
875-
secret:
876-
secretName: result-aggregator
877-
trigger: (?m)^/test( | .* )e2e-aws-ovn-upgrade-ocb-techpreview,?($|\s.*)
878728
- agent: kubernetes
879729
always_run: false
880730
branches:

0 commit comments

Comments
 (0)