Skip to content

Commit c35559a

Browse files
Merge pull request #8471 from r4f4/capi-bump-envtest-tools
OCPBUGS-34456: bump envtest binaries version
2 parents f5f6a6d + 6899613 commit c35559a

File tree

8 files changed

+13
-5
lines changed

8 files changed

+13
-5
lines changed

hack/build-cluster-api.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
TARGET_OS_ARCH=$(go env GOOS)_$(go env GOARCH)
66
CLUSTER_API_BIN_DIR="${PWD}/cluster-api/bin/${TARGET_OS_ARCH}"
77
CLUSTER_API_MIRROR_DIR="${PWD}/pkg/clusterapi/mirror/"
8-
ENVTEST_K8S_VERSION="1.28.0"
8+
ENVTEST_K8S_VERSION="1.30.0"
99
ENVTEST_ARCH=$(go env GOOS)-$(go env GOARCH)
1010

1111
copy_cluster_api_to_mirror() {
@@ -15,7 +15,9 @@ copy_cluster_api_to_mirror() {
1515
# Clean the mirror, but preserve the README file.
1616
rm -rf "${CLUSTER_API_MIRROR_DIR:?}/*.zip"
1717

18-
sync_envtest
18+
if test "${SKIP_ENVTEST}" != y; then
19+
sync_envtest
20+
fi
1921

2022
# Zip every binary in the folder into a single zip file.
2123
zip -j1 "${CLUSTER_API_MIRROR_DIR}/cluster-api.zip" "${CLUSTER_API_BIN_DIR}"/*
@@ -34,8 +36,8 @@ sync_envtest() {
3436
fi
3537
fi
3638

37-
bucket="https://storage.googleapis.com/kubebuilder-tools"
38-
tar_file="kubebuilder-tools-${ENVTEST_K8S_VERSION}-${ENVTEST_ARCH}.tar.gz"
39+
bucket="https://github.com/kubernetes-sigs/controller-tools/releases/download/envtest-v${ENVTEST_K8S_VERSION}"
40+
tar_file="envtest-v${ENVTEST_K8S_VERSION}-${ENVTEST_ARCH}.tar.gz"
3941
dst="${CLUSTER_API_BIN_DIR}/${tar_file}"
4042
if ! [ -f "${CLUSTER_API_BIN_DIR}/${tar_file}" ]; then
4143
echo "Downloading envtest binaries"

images/baremetal/Dockerfile.ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ FROM registry.ci.openshift.org/ocp/4.16:hyperkube AS kas
77

88
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
99
ARG TAGS="baremetal fipscapable"
10+
ARG SKIP_ENVTEST="y"
1011
WORKDIR /go/src/github.com/openshift/installer
1112
COPY . .
1213
COPY --from=etcd /usr/bin/etcd /usr/bin/etcd

images/installer-altinfra/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS
1515
# FIPS support is offered via the baremetal-installer image
1616
ENV GO_COMPLIANCE_EXCLUDE=".*"
1717
ARG TAGS="altinfra"
18-
ARG OPENSHIFT_INSTALL_CLUSTER_API=""
18+
ARG SKIP_ENVTEST="y"
1919
WORKDIR /go/src/github.com/openshift/installer
2020
COPY . .
2121
COPY --from=kas-artifacts /usr/share/openshift/ cluster-api/bin/

images/installer-artifacts/Dockerfile.rhel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RUN GOOS=linux GOARCH=amd64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
4141
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS linuxarmbuilder
4242
ENV GO_COMPLIANCE_EXCLUDE=".*"
4343
ARG TAGS=""
44+
ARG SKIP_ENVTEST="y"
4445
WORKDIR /go/src/github.com/openshift/installer
4546
COPY . .
4647
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/linux_arm64 terraform/bin/linux_arm64

images/installer/Dockerfile.ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS
1010
# FIPS support is offered via the baremetal-installer image
1111
ENV GO_COMPLIANCE_EXCLUDE=".*"
1212
ARG TAGS=""
13+
ARG SKIP_ENVTEST="y"
1314
WORKDIR /go/src/github.com/openshift/installer
1415
COPY . .
1516
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/

images/installer/Dockerfile.upi.ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS
1111
# FIPS support is offered via the baremetal-installer image
1212
ENV GO_COMPLIANCE_EXCLUDE=".*"
1313
ARG TAGS=""
14+
ARG SKIP_ENVTEST="y"
1415
WORKDIR /go/src/github.com/openshift/installer
1516
COPY . .
1617
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/

images/libvirt/Dockerfile.ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ FROM registry.ci.openshift.org/ocp/4.17:hyperkube AS kas
88

99
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
1010
ARG TAGS="libvirt fipscapable"
11+
ARG SKIP_ENVTEST="y"
1112
WORKDIR /go/src/github.com/openshift/installer
1213
COPY . .
1314
COPY --from=etcd /usr/bin/etcd /usr/bin/etcd

images/openstack/Dockerfile.ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS
99
# FIPS support is offered via the baremetal-installer image
1010
ENV GO_COMPLIANCE_EXCLUDE=".*"
1111
ARG TAGS=""
12+
ARG SKIP_ENVTEST="y"
1213
WORKDIR /go/src/github.com/openshift/installer
1314
COPY . .
1415
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/

0 commit comments

Comments
 (0)