Skip to content

Commit

Permalink
add fix for 1.25.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie McBride authored and Charlie McBride committed Mar 4, 2024
1 parent 3953a88 commit 4836d27
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hack/toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 4836d27

Please sign in to comment.