Skip to content

Commit d425bc3

Browse files
Merge pull request #8281 from vfreex/4.21-make-go-1.25-available
[ART-14275] Add 1.25.3 golang builders to 4.21
2 parents 8db3fe3 + 24833ff commit d425bc3

File tree

4 files changed

+143
-1
lines changed

4 files changed

+143
-1
lines changed

group.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ vars:
2424
# - rhel-9-golang-{GO_LATEST}
2525
# image: openshift/golang-builder:v1.21.3-202401221732.el9.g00c615b
2626
GO_LATEST: "1.24"
27-
GO_EXTRA: "1.24" # There is no extra version at this time, so just duplicate latest.
27+
GO_EXTRA: "1.25" # ovn-kubernetes or other components require Go 1.25
2828

2929
compliance:
3030
rpm_shim:
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
content:
2+
# set_build_variables to false, as setting git commit env vars break certain
3+
# workloads. Set env vars in the Dockerfile, and use modifications if they
4+
# should be variable
5+
set_build_variables: false
6+
source:
7+
dockerfile: ci_images/rhel-8/ci-openshift-golang-builder/Dockerfile
8+
git:
9+
branch:
10+
target: openshift-{MAJOR}.{MINOR}
11+
url: [email protected]:openshift-priv/ocp-build-data.git
12+
web: https://github.com/openshift-eng/ocp-build-data
13+
ci_alignment:
14+
streams_prs:
15+
enabled: false
16+
mirror: true
17+
mirror_manifest_list: true
18+
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-8-golang-{GO_EXTRA}-openshift-{MAJOR}.{MINOR}
19+
upstream_image_mirror:
20+
- registry.ci.openshift.org/ocp-private/builder-priv:rhel-8-golang-{GO_EXTRA}-openshift-{MAJOR}.{MINOR}
21+
modifications:
22+
- action: replace
23+
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
24+
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel8.ocp.svc"
25+
26+
from:
27+
stream: rhel-8-golang-{GO_EXTRA}
28+
labels:
29+
io.k8s.description: golang {GO_EXTRA} builder image for Red Hat CI
30+
distgit:
31+
branch: rhaos-{MAJOR}.{MINOR}-rhel-8
32+
component: ci-openshift-golang-builder-extra-container
33+
name: ci-openshift-golang-builder-extra
34+
35+
# Repos enabled in the builder image will be ultimately be injected as repos
36+
# in the builder image. This means that engineers who download the image and
37+
# run it connected to the VPN will be able to access the content. This is
38+
# desirable since it allows Dockerfile builds requiring RPMs to work as long
39+
# as the host is connected to the VPN.
40+
enabled_repos:
41+
- rhel-8-baseos-rpms
42+
- rhel-8-appstream-rpms
43+
- rhel-8-server-ose-rpms
44+
- rhel-8-fast-datapath-rpms
45+
46+
name: openshift/ci-openshift-golang-builder-extra-rhel8
47+
for_payload: false
48+
for_release: false
49+
owners:
50+
51+
maintainer:
52+
component: Release
53+
54+
# The from: stanza is exactly what we want to use. So ignore anything in
55+
# the Dockerfile.
56+
canonical_builders_from_upstream: false
57+
58+
scan_sources:
59+
exempt_rpms:
60+
- '*'
61+
konflux:
62+
network_mode: open
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
content:
2+
# set_build_variables to false, as setting git commit env vars break certain
3+
# workloads. Set env vars in the Dockerfile, and use modifications if they
4+
# should be variable
5+
set_build_variables: false
6+
source:
7+
dockerfile: ci_images/rhel-9/ci-openshift-golang-builder/Dockerfile
8+
git:
9+
branch:
10+
target: openshift-{MAJOR}.{MINOR}
11+
url: [email protected]:openshift-priv/ocp-build-data.git
12+
web: https://github.com/openshift-eng/ocp-build-data
13+
ci_alignment:
14+
streams_prs:
15+
enabled: false
16+
mirror: true
17+
mirror_manifest_list: true
18+
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-9-golang-{GO_EXTRA}-openshift-{MAJOR}.{MINOR}
19+
upstream_image_mirror:
20+
- registry.ci.openshift.org/ocp-private/builder-priv:rhel-9-golang-{GO_EXTRA}-openshift-{MAJOR}.{MINOR}
21+
modifications:
22+
- action: replace
23+
match: "ENV CI_RPM_SVC=base-MAJOR-MINOR-rhelX.ocp.svc"
24+
replacement: "ENV CI_RPM_SVC=base-{MAJOR}-{MINOR}-rhel9.ocp.svc"
25+
26+
from:
27+
stream: rhel-9-golang-{GO_EXTRA}
28+
labels:
29+
io.k8s.description: golang {GO_EXTRA} builder image for Red Hat CI
30+
distgit:
31+
branch: rhaos-{MAJOR}.{MINOR}-rhel-9
32+
component: ci-openshift-golang-builder-extra-container
33+
34+
# Repos enabled in the builder image will be ultimately be injected as repos
35+
# in the builder image. This means that engineers who download the image and
36+
# run it connected to the VPN will be able to access the content. This is
37+
# desirable since it allows Dockerfile builds requiring RPMs to work as long
38+
# as the host is connected to the VPN.
39+
enabled_repos:
40+
- rhel-9-baseos-rpms
41+
- rhel-9-appstream-rpms
42+
- rhel-9-codeready-builder-rpms
43+
- rhel-9-server-ose-rpms
44+
- rhel-9-fast-datapath-rpms
45+
46+
name: openshift/ci-openshift-golang-builder-extra-rhel9
47+
for_payload: false
48+
for_release: false
49+
owners:
50+
51+
maintainer:
52+
component: Release
53+
54+
# The from: stanza is exactly what we want to use. So ignore anything in
55+
# the Dockerfile.
56+
canonical_builders_from_upstream: false
57+
58+
scan_sources:
59+
exempt_rpms:
60+
- '*'
61+
konflux:
62+
network_mode: open

streams.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@ rhel-8-golang:
3535
# upstream_image informs reconciliation PRs which upstream image to use for CI when this stream is referenced.
3636
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-8-golang-{GO_LATEST}-openshift-{MAJOR}.{MINOR}
3737

38+
rhel-9-golang-1.25:
39+
aliases:
40+
- rhel-9-golang-{GO_EXTRA}
41+
image: quay.io/redhat-user-workloads/ocp-art-tenant/art-images:golang-builder-v1.25.3-202511260833.g5015a16.el9
42+
mirror: false
43+
# Since mirror: false, an images/ci-openshift-golang-builder* metadata must push to this location.
44+
# upstream_image informs reconciliation PRs which upstream image to use for CI when this stream is referenced.
45+
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-9-golang-{GO_EXTRA}-openshift-{MAJOR}.{MINOR}
46+
47+
rhel-8-golang-1.25:
48+
aliases:
49+
- rhel-8-golang-{GO_EXTRA}
50+
image: quay.io/redhat-user-workloads/ocp-art-tenant/art-images:golang-builder-v1.25.3-202512040841.gb36c047.el8
51+
mirror: false
52+
# Since mirror: false, an images/ci-openshift-golang-builder* metadata must push to this location.
53+
# upstream_image informs reconciliation PRs which upstream image to use for CI when this stream is referenced.
54+
upstream_image: registry.ci.openshift.org/ocp/builder:rhel-8-golang-{GO_EXTRA}-openshift-{MAJOR}.{MINOR}
55+
3856
partner-rhel-8-golang-1.24:
3957
image: quay.io/redhat-user-workloads/ocp-art-tenant/art-images:golang-builder-v1.24.6-202511041143.gc784618.el8
4058
mirror: true

0 commit comments

Comments
 (0)