Skip to content

Commit

Permalink
Pin to the latest patch version of 1.25.x in toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Feb 16, 2024
1 parent 6b90e4e commit 854b5ef
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 854b5ef

Please sign in to comment.