diff --git a/hack/ensure-kubectl.sh b/hack/ensure-kubectl.sh index 6d0a831b6..c40abec9f 100755 --- a/hack/ensure-kubectl.sh +++ b/hack/ensure-kubectl.sh @@ -40,7 +40,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 <