Skip to content

Commit a90949c

Browse files
Merge pull request #5448 from sdodson/main
"NO-ISSUE: Add rhel-10-coreos{,-extensions} to image-references"
2 parents e206063 + 0e931a6 commit a90949c

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ 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 rhel-coreos-10 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 \
35+
# comment out rhel-coreos-10 for scos
36+
sed -i '/- name: rhel-coreos-10/,+3 s/^/#/' /manifests/* && \
3337
# rewrite image names for scos
3438
sed -i 's/rhel-coreos/stream-coreos/g' /manifests/*; fi && \
3539
dnf --setopt=keepcache=true -y install 'nmstate >= 2.2.10' && \

Dockerfile.rhel7

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ 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 rhel-coreos-10 entirely for fcos
30+
sed -i '/- name: rhel-coreos-10/,+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 \
36+
# comment out rhel-coreos-10 for scos
37+
sed -i '/- name: rhel-coreos-10/,+3 s/^/#/' /manifests/* && \
3438
# rewrite image names for scos
3539
sed -i 's/rhel-coreos/stream-coreos/g' /manifests/*; fi && \
3640
dnf --setopt=keepcache=true -y install 'nmstate >= 2.2.10' && \

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)