File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
images/installer-altinfra Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ copy_cluster_api_to_mirror() {
2828
2929sync_envtest () {
3030 if [ -f " ${CLUSTER_API_BIN_DIR} /kube-apiserver" ]; then
31- version=$( " ${CLUSTER_API_BIN_DIR} /kube-apiserver" --version || echo " Kubernetes v0.0.0" )
31+ version=$( " ${CLUSTER_API_BIN_DIR} /kube-apiserver" --version | sed ' s/Kubernetes // ' || echo " v0.0.0" )
3232 echo " Found envtest binaries with version: ${version} "
33- if [ " ${version} " = " Kubernetes v ${ENVTEST_K8S_VERSION }" ] ; then
33+ if printf ' %s\n%s ' v ${ENVTEST_K8S_VERSION} " ${version }" | sort -V -C ; then
3434 return
3535 fi
3636 fi
Original file line number Diff line number Diff line change 77# solutions. Once all providers have alternate implementations, this image will
88# not be needed.
99
10- FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16 AS builder
10+ FROM registry.ci.openshift.org/ocp/4.16:etcd AS etcd
11+ FROM registry.ci.openshift.org/ocp/4.16:hyperkube AS kas
12+
13+ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
1114# FIPS support is offered via the baremetal-installer image
1215ENV GO_COMPLIANCE_EXCLUDE=".*"
1316ARG TAGS="altinfra"
1417ARG OPENSHIFT_INSTALL_CLUSTER_API=""
1518WORKDIR /go/src/github.com/openshift/installer
19+ COPY --from=etcd /usr/bin/etcd /usr/bin/etcd
20+ COPY --from=kas /usr/bin/kube-apiserver /usr/bin/kube-apiserver
1621COPY . .
22+ RUN mkdir -p cluster-api/bin/$(go env GOOS)_$(go env GOHOSTARCH) && \
23+ mv /usr/bin/etcd /usr/bin/kube-apiserver -t cluster-api/bin/$(go env GOOS)_$(go env GOHOSTARCH)/
1724RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
1825RUN go run -mod=vendor hack/build-coreos-manifest.go
1926
2027
21- FROM registry.ci.openshift.org/ocp/4.16:base
28+ FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
2229COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
2330COPY --from=builder /go/src/github.com/openshift/installer/bin/manifests/ /manifests/
2431RUN mkdir /output && chown 1000:1000 /output
You can’t perform that action at this time.
0 commit comments