Skip to content

Commit 77bec01

Browse files
committed
CNF-18836 / CNF-20367: Reconfigure repo to allow mintmaker rpm updates to work with ubi9 images
- Update container_build_args.conf to use the new ubi9 image - Update Makefile to parse the new images correctly and update the targets invoking the rpm-lock tooling - Update rpms.in.yaml - Remove now unnecessary ssl configuration - Remove context on Dockerfile - Add varsFromImage with reference to the same image in container_build_args.conf - Update rpms.lock.yaml with outputs from the rpm-lock script - Update pipeline on-cel-expressions Assisted-by: Cursor/claude-4-sonnet AI-attribution: AIA,Primarily human-created,Human-initiated,Reviewed,Cursor/claude-4-sonnet,v1.0 For more information on AI attribution statements, see: https://aiattribution.github.io/
1 parent 0272291 commit 77bec01

14 files changed

+124
-154
lines changed

.konflux/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lock-runtime/*

.konflux/Dockerfile.catalog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ENV REGISTRY_AUTH_FILE=$HOME/.docker/config.json
3535
RUN SKIP_SUBMODULE_SYNC=yes make konflux-generate-catalog-production && \
3636
rm -f $HOME/.docker/config.json
3737

38-
# run the catalog
38+
# Run the catalog
3939
FROM ${OPM_IMAGE}
4040

4141
ENTRYPOINT ["/bin/opm"]

.konflux/container_build_args.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ OPENSHIFT_CLI_IMAGE=registry.redhat.io/openshift4/ose-cli-rhel9:v4.20@sha256:5f1
1818
#
1919

2020
# The runtime image is used to run the binaries
21-
RUNTIME_IMAGE=registry.redhat.io/rhel9-6-els/rhel-minimal:9.6@sha256:9d598db1de300ae0b319b2d2b8b0f9459cc289f76f11dc8a659c13bab0d66393
21+
# This should match the varsFromImage in the rpms.in.yaml file
22+
RUNTIME_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:34880b64c07f28f64d95737f82f891516de9a3b43583f39970f7bf8e4cfa48b7
2223
#
2324

2425
# The yq image is used at build time to manipulate yaml

.konflux/lock-runtime/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.konflux/lock-runtime/rpms.in.yaml

Lines changed: 0 additions & 100 deletions
This file was deleted.

.konflux/rpms.in.yaml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
arches:
3+
- x86_64
4+
- aarch64
5+
contentOrigin:
6+
# Repos defined in this list must exactly match the repos defined in the conforma configuration
7+
# See https://github.com/release-engineering/rhtap-ec-policy/blob/main/data/known_rpm_repositories.yml
8+
repos:
9+
- repoid: ubi-9-for-$basearch-appstream-rpms
10+
name: Red Hat Universal Base Image 9 for $basearch - AppStream (RPMs)
11+
baseurl: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/appstream/os
12+
enabled: "1"
13+
gpgcheck: "1"
14+
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
15+
sslverify: "1"
16+
sslverifystatus: "1"
17+
metadata_expire: "86400"
18+
enabled_metadata: "1"
19+
# This should match the RUNTIME_IMAGE in container_build_args.conf
20+
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:34880b64c07f28f64d95737f82f891516de9a3b43583f39970f7bf8e4cfa48b7
21+
#
22+
- repoid: ubi-9-for-$basearch-appstream-eus-rpms
23+
name: Red Hat Universal Base Image 9 for $basearch - AppStream EUS (RPMs)
24+
baseurl: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/appstream/os
25+
enabled: "1"
26+
gpgcheck: "1"
27+
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
28+
sslverify: "1"
29+
sslverifystatus: "1"
30+
metadata_expire: "86400"
31+
enabled_metadata: "1"
32+
# This should match the RUNTIME_IMAGE in container_build_args.conf
33+
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:34880b64c07f28f64d95737f82f891516de9a3b43583f39970f7bf8e4cfa48b7
34+
#
35+
- repoid: ubi-9-for-$basearch-baseos-rpms
36+
name: Red Hat Universal Base Image 9 for $basearch - BaseOS (RPMs)
37+
baseurl: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/baseos/os
38+
enabled: "1"
39+
gpgcheck: "1"
40+
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
41+
sslverify: "1"
42+
sslverifystatus: "1"
43+
metadata_expire: "86400"
44+
enabled_metadata: "1"
45+
# This should match the RUNTIME_IMAGE in container_build_args.conf
46+
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:34880b64c07f28f64d95737f82f891516de9a3b43583f39970f7bf8e4cfa48b7
47+
#
48+
- repoid: ubi-9-for-$basearch-baseos-eus-rpms
49+
name: Red Hat Universal Base Image 9 for $basearch - BaseOS EUS (RPMs)
50+
baseurl: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/baseos/os
51+
enabled: "1"
52+
gpgcheck: "1"
53+
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
54+
sslverify: "1"
55+
sslverifystatus: "1"
56+
metadata_expire: "86400"
57+
enabled_metadata: "1"
58+
# This should match the RUNTIME_IMAGE in container_build_args.conf
59+
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:34880b64c07f28f64d95737f82f891516de9a3b43583f39970f7bf8e4cfa48b7
60+
#
61+
- repoid: codeready-builder-for-ubi-9-$basearch-rpms
62+
name: Red Hat CodeReady Linux Builder for UBI 9 $basearch (RPMs)
63+
baseurl: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/os/
64+
enabled: "1"
65+
gpgcheck: "1"
66+
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
67+
sslverify: "1"
68+
sslverifystatus: "1"
69+
metadata_expire: "86400"
70+
enabled_metadata: "1"
71+
# This should match the RUNTIME_IMAGE in container_build_args.conf
72+
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:34880b64c07f28f64d95737f82f891516de9a3b43583f39970f7bf8e4cfa48b7
73+
#
74+
- repoid: codeready-builder-for-ubi-9-$basearch-eus-rpms
75+
name: Red Hat CodeReady Linux Builder for UBI 9 $basearch EUS (RPMs)
76+
baseurl: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/os/
77+
enabled: "1"
78+
gpgcheck: "1"
79+
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
80+
sslverify: "1"
81+
sslverifystatus: "1"
82+
metadata_expire: "86400"
83+
enabled_metadata: "1"
84+
# This should match the RUNTIME_IMAGE in container_build_args.conf
85+
varsFromImage: registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:34880b64c07f28f64d95737f82f891516de9a3b43583f39970f7bf8e4cfa48b7
86+
#
87+
packages:
88+
- util-linux-core
89+
- rsync
90+
- tar
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ lockfileVendor: redhat
44
arches:
55
- arch: aarch64
66
packages:
7-
- url: https://cdn.redhat.com/content/dist/rhel9/9.6/aarch64/baseos/os/Packages/r/rsync-3.2.5-3.el9.aarch64.rpm
8-
repoid: rhel-9-for-aarch64-baseos-rpms
7+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/os/Packages/r/rsync-3.2.5-3.el9.aarch64.rpm
8+
repoid: ubi-9-for-aarch64-baseos-rpms
99
size: 416293
1010
checksum: sha256:99235a7555f6454898ebbcdcf927ebed68e3a60599c9226b9d1d60578d292878
1111
name: rsync
1212
evr: 3.2.5-3.el9
1313
sourcerpm: rsync-3.2.5-3.el9.src.rpm
14-
- url: https://cdn.redhat.com/content/dist/rhel9/9.6/aarch64/baseos/os/Packages/t/tar-1.34-7.el9.aarch64.rpm
15-
repoid: rhel-9-for-aarch64-baseos-rpms
14+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/os/Packages/t/tar-1.34-7.el9.aarch64.rpm
15+
repoid: ubi-9-for-aarch64-baseos-rpms
1616
size: 900197
1717
checksum: sha256:44552dea889d350403c3074a33d7cb274b3f57553e47db998745df13f931b458
1818
name: tar
1919
evr: 2:1.34-7.el9
2020
sourcerpm: tar-1.34-7.el9.src.rpm
21-
- url: https://cdn.redhat.com/content/dist/rhel9/9.6/aarch64/baseos/os/Packages/u/util-linux-core-2.37.4-21.el9.aarch64.rpm
22-
repoid: rhel-9-for-aarch64-baseos-rpms
21+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/os/Packages/u/util-linux-core-2.37.4-21.el9.aarch64.rpm
22+
repoid: ubi-9-for-aarch64-baseos-rpms
2323
size: 476169
2424
checksum: sha256:e1d6b36eaaa048d6cb22799d3c463c95d0aadf5dac83fdcf05e9c047eb396406
2525
name: util-linux-core
@@ -29,22 +29,22 @@ arches:
2929
module_metadata: []
3030
- arch: x86_64
3131
packages:
32-
- url: https://cdn.redhat.com/content/dist/rhel9/9.6/x86_64/baseos/os/Packages/r/rsync-3.2.5-3.el9.x86_64.rpm
33-
repoid: rhel-9-for-x86_64-baseos-rpms
32+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/baseos/os/Packages/r/rsync-3.2.5-3.el9.x86_64.rpm
33+
repoid: ubi-9-for-x86_64-baseos-rpms
3434
size: 421930
3535
checksum: sha256:b1d90c38b613f2d66dfe0c7c3d067a3ce429f7b2ec5224e560f326fc2fd8d1e5
3636
name: rsync
3737
evr: 3.2.5-3.el9
3838
sourcerpm: rsync-3.2.5-3.el9.src.rpm
39-
- url: https://cdn.redhat.com/content/dist/rhel9/9.6/x86_64/baseos/os/Packages/t/tar-1.34-7.el9.x86_64.rpm
40-
repoid: rhel-9-for-x86_64-baseos-rpms
39+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/baseos/os/Packages/t/tar-1.34-7.el9.x86_64.rpm
40+
repoid: ubi-9-for-x86_64-baseos-rpms
4141
size: 910235
4242
checksum: sha256:17f2e592a2c04c050b690afeb9042e02521a0b5ee3288dad837463f4acf542c3
4343
name: tar
4444
evr: 2:1.34-7.el9
4545
sourcerpm: tar-1.34-7.el9.src.rpm
46-
- url: https://cdn.redhat.com/content/dist/rhel9/9.6/x86_64/baseos/os/Packages/u/util-linux-core-2.37.4-21.el9.x86_64.rpm
47-
repoid: rhel-9-for-x86_64-baseos-rpms
46+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/baseos/os/Packages/u/util-linux-core-2.37.4-21.el9.x86_64.rpm
47+
repoid: ubi-9-for-x86_64-baseos-rpms
4848
size: 480619
4949
checksum: sha256:36389814fcec56d9b9d4bd1a4a63efb1cefa00bc8bacab73f89ef8f8be04b1cd
5050
name: util-linux-core

.tekton/lifecycle-agent-4-21-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
- name: dev-package-managers
6464
value: "true"
6565
- name: prefetch-input
66-
value: '[{"type": "rpm", "path": ".konflux/lock-runtime"}, {"type": "gomod", "path": "."}]'
66+
value: '[{"type": "rpm", "path": ".konflux/"}, {"type": "gomod", "path": "."}]'
6767
- name: build-source-image
6868
value: "true"
6969
- name: skip-sast-coverity

.tekton/lifecycle-agent-4-21-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ spec:
6161
- name: dev-package-managers
6262
value: "true"
6363
- name: prefetch-input
64-
value: '[{"type": "rpm", "path": ".konflux/lock-runtime"}, {"type": "gomod", "path": "."}]'
64+
value: '[{"type": "rpm", "path": ".konflux/"}, {"type": "gomod", "path": "."}]'
6565
- name: build-source-image
6666
value: "true"
6767
- name: skip-sast-coverity

.tekton/lifecycle-agent-fbc-4-21-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ metadata:
1515
(
1616
'.konflux/catalog/***'.pathChanged() ||
1717
'.konflux/container_build_args.conf'.pathChanged() ||
18-
'.konflux/Dockerfile.catalog'.pathChanged() ||
1918
'.tekton/fbc-pipeline.yaml'.pathChanged() ||
2019
'.tekton/images-mirror-set.yaml'.pathChanged() ||
2120
'.tekton/lifecycle-agent-fbc-4-21-pull-request.yaml'.pathChanged() ||
21+
'Dockerfile.catalog'.pathChanged() ||
2222
'telco5g-konflux'.pathChanged() ||
2323
'telco5g-konflux/***'.pathChanged()
2424
)

0 commit comments

Comments
 (0)