Skip to content

Commit

Permalink
Merge pull request #9275 from kubernetes-sigs/sbueringer-patch-1
Browse files Browse the repository at this point in the history
 🌱 Update ensure-kubectl.sh to 1.28
  • Loading branch information
k8s-ci-robot committed Aug 23, 2023
2 parents 75ab59e + c518792 commit 9f7f548
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 9f7f548

Please sign in to comment.