Skip to content

Commit 01dac77

Browse files
committed
Create ConfigMap to reference baremetal-installer image
Have CVO maintain a ConfigMap containing the pullspec for the baremetal-installer container image in the current release image. We choose the baremetal-installer container because this is the one that can run inside the cluster - the binary always matches the cpu architecture of the container and it can run in FIPS mode. Also include the machine-os-images pullspec in the ConfigMap, for future flexibility in case it should be needed.
1 parent 5a5fb73 commit 01dac77

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

images/baremetal/Dockerfile.ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build-node-joiner.sh
1919

2020
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
2121

22+
COPY --from=builder /go/src/github.com/openshift/installer/images/baremetal/manifests /manifests
2223
COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
2324

2425
RUN dnf upgrade -y && \
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: installer-images
6+
namespace: openshift-config
7+
annotations:
8+
include.release.openshift.io/ibm-cloud-managed: "true"
9+
include.release.openshift.io/self-managed-high-availability: "true"
10+
include.release.openshift.io/single-node-developer: "true"
11+
data:
12+
images.json: >
13+
{
14+
"installer": "registry.ci.openshift.org/openshift:baremetal-installer",
15+
"machine-os-images": "registry.ci.openshift.org/openshift:machine-os-images"
16+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
kind: ImageStream
2+
apiVersion: image.openshift.io/v1
3+
spec:
4+
tags:
5+
- name: baremetal-installer
6+
from:
7+
kind: DockerImage
8+
name: registry.ci.openshift.org/openshift:baremetal-installer
9+
- name: machine-os-images
10+
from:
11+
kind: DockerImage
12+
name: registry.ci.openshift.org/openshift:machine-os-images

0 commit comments

Comments
 (0)