diff --git a/hack/toolchain.sh b/hack/toolchain.sh index 39911c2bbf9b..d85449da6c26 100755 --- a/hack/toolchain.sh +++ b/hack/toolchain.sh @@ -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() { @@ -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 }