Skip to content

Commit

Permalink
Update ensure-kubectl.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Aug 22, 2023
1 parent 56a68f3 commit 24e385b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/ensure-kubectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand All @@ -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 <<EOF
Detected kubectl version: ${kubectl_version[2]}.
Expand Down

0 comments on commit 24e385b

Please sign in to comment.