Skip to content

Commit ea6f65f

Browse files
committed
Add rhel-10-coreos{,-extensions} to image-references
Handle FCOS and SCOS where those aren't relevant by commenting them out.
1 parent 759466d commit ea6f65f

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ COPY install /manifests
2525
RUN if [ "${TAGS}" = "fcos" ]; then \
2626
# comment out non-base/extensions image-references entirely for fcos
2727
sed -i '/- name: rhel-coreos-/,+3 s/^/#/' /manifests/image-references && \
28+
# comment out rhel10 entirely for fcos
29+
sed -i '/- name: rhel-coreos-10/,+3 s/^/#/' /manifests/image-references && \
2830
# also remove extensions from the osimageurl configmap (if we don't, oc won't rewrite it, and the placeholder value will survive and get used)
2931
sed -i '/baseOSExtensionsContainerImage:/ s/^/#/' /manifests/0000_80_machine-config_05_osimageurl.yaml && \
3032
# rewrite image names for fcos
3133
sed -i 's/rhel-coreos/fedora-coreos/g' /manifests/*; \
3234
elif [ "${TAGS}" = "scos" ]; then \
3335
# rewrite image names for scos
34-
sed -i 's/rhel-coreos/stream-coreos/g' /manifests/*; fi && \
36+
sed -i 's/rhel-coreos/stream-coreos/g' /manifests/* && \
37+
# comment out rhel10 entirely for scos
38+
sed -i '/- name: rhel-coreos-10/,+3 s/^/#/' /manifests/image-references; fi && \
3539
dnf --setopt=keepcache=true -y install 'nmstate >= 2.2.10' && \
3640
if ! rpm -q util-linux; then dnf install --setopt=keepcache=true -y util-linux; fi && \
3741
# We also need to install fuse-overlayfs and cpp for Buildah to work correctly.

Dockerfile.rhel7

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,17 @@ COPY install /manifests
2626
RUN if [ "${TAGS}" = "fcos" ]; then \
2727
# comment out non-base/extensions image-references entirely for fcos
2828
sed -i '/- name: rhel-coreos-/,+3 s/^/#/' /manifests/image-references && \
29+
# comment out rhel10 entirely for fcos
30+
sed -i '/- name: rhel-10-coreos/,+3 s/^/#/' /manifests/image-references && \
2931
# also remove extensions from the osimageurl configmap (if we don't, oc won't rewrite it, and the placeholder value will survive and get used)
3032
sed -i '/baseOSExtensionsContainerImage:/ s/^/#/' /manifests/0000_80_machine-config_05_osimageurl.yaml && \
3133
# rewrite image names for fcos
3234
sed -i 's/rhel-coreos/fedora-coreos/g' /manifests/*; \
3335
elif [ "${TAGS}" = "scos" ]; then \
3436
# rewrite image names for scos
35-
sed -i 's/rhel-coreos/stream-coreos/g' /manifests/*; fi && \
37+
sed -i 's/rhel-coreos/stream-coreos/g' /manifests/* && \
38+
# comment out rhel10 entirely for scos
39+
sed -i '/- name: rhel-10-coreos/,+3 s/^/#/' /manifests/image-references; fi && \
3640
dnf --setopt=keepcache=true -y install 'nmstate >= 2.2.10' && \
3741
if ! rpm -q util-linux; then dnf install --setopt=keepcache=true -y util-linux; fi && \
3842
# We also need to install fuse-overlayfs and cpp for Buildah to work correctly.

install/image-references

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ spec:
2828
from:
2929
kind: DockerImage
3030
name: placeholder.url.oc.will.replace.this.org/placeholdernamespace:rhel-coreos-extensions
31+
- name: rhel-coreos-10
32+
from:
33+
kind: DockerImage
34+
name: placeholder.url.oc.will.replace.this.org/placeholdernamespace:rhel10-coreos
35+
- name: rhel-coreos-10-extensions
36+
from:
37+
kind: DockerImage
38+
name: placeholder.url.oc.will.replace.this.org/placeholdernamespace:rhel10-coreos-extensions
3139
- name: keepalived-ipfailover
3240
from:
3341
kind: DockerImage

0 commit comments

Comments
 (0)