Skip to content

Commit

Permalink
ci: Pin to the latest patch version of 1.25.x in toolchain (#5672)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored and jigisha620 committed Feb 17, 2024
1 parent 2e2cf9e commit 0105d03
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 0105d03

Please sign in to comment.