From 6b2ee0f4c2fe5e125560fb68ca1f48c3b9c40c89 Mon Sep 17 00:00:00 2001 From: Jason Deal Date: Thu, 30 Nov 2023 21:32:24 -0800 Subject: [PATCH] update toolchain.sh --- hack/toolchain.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hack/toolchain.sh b/hack/toolchain.sh index a95371552d..28aea8ab9c 100755 --- a/hack/toolchain.sh +++ b/hack/toolchain.sh @@ -35,6 +35,15 @@ kubebuilder() { arch=$(go env GOARCH) ln -sf $(setup-envtest use -p path "${K8S_VERSION}" --arch="${arch}" --bin-dir="${KUBEBUILDER_ASSETS}")/* ${KUBEBUILDER_ASSETS} find $KUBEBUILDER_ASSETS + + # Install latest binaries for 1.25.x (contains CEL fix) + if [[ "${K8S_VERSION}" = "1.25.x" ]] && [[ "$OSTYPE" == "linux"* ]]; then + for binary in 'kube-apiserver' 'kubectl'; do + rm $KUBEBUILDER_ASSETS/$binary + wget -P $KUBEBUILDER_ASSETS dl.k8s.io/v1.25.16/bin/linux/${arch}/${binary} + chmod +x $KUBEBUILDER_ASSETS/$binary + done + fi } main "$@"