Skip to content

Commit

Permalink
ci: Bump the envtest default version to 1.28.x (#5109)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Nov 17, 2023
1 parent e85d23b commit b92352a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hack/toolchain.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

K8S_VERSION="${K8S_VERSION:="1.27.x"}"
K8S_VERSION="${K8S_VERSION:="1.28.x"}"
KUBEBUILDER_ASSETS="/usr/local/kubebuilder/bin"

main() {
Expand Down Expand Up @@ -33,10 +33,6 @@ kubebuilder() {
sudo mkdir -p ${KUBEBUILDER_ASSETS}
sudo chown "${USER}" ${KUBEBUILDER_ASSETS}
arch=$(go env GOARCH)
## Kubebuilder does not support darwin/arm64, so use amd64 through Rosetta instead
if [[ $(go env GOOS) == "darwin" ]] && [[ $(go env GOARCH) == "arm64" ]]; then
arch="amd64"
fi
ln -sf $(setup-envtest use -p path "${K8S_VERSION}" --arch="${arch}" --bin-dir="${KUBEBUILDER_ASSETS}")/* ${KUBEBUILDER_ASSETS}
find $KUBEBUILDER_ASSETS
}
Expand Down

0 comments on commit b92352a

Please sign in to comment.