diff --git a/hack/ensure-kubectl.sh b/hack/ensure-kubectl.sh index 86b318461a73..13b6dd8b8a38 100755 --- a/hack/ensure-kubectl.sh +++ b/hack/ensure-kubectl.sh @@ -27,7 +27,7 @@ fi source "$(dirname "${BASH_SOURCE[0]}")/utils.sh" GOPATH_BIN="$(go env GOPATH)/bin/" -MINIMUM_KUBECTL_VERSION=v1.19.0 +MINIMUM_KUBECTL_VERSION=v1.28.0 goarch="$(go env GOARCH)" goos="$(go env GOOS)" @@ -51,7 +51,7 @@ verify_kubectl_version() { fi local kubectl_version - IFS=" " read -ra kubectl_version <<< "$(kubectl version --client --short)" + IFS=" " read -ra kubectl_version <<< "$(kubectl version --client)" if [[ "${MINIMUM_KUBECTL_VERSION}" != $(echo -e "${MINIMUM_KUBECTL_VERSION}\n${kubectl_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) ]]; then cat <