Skip to content

Commit

Permalink
Remove deprecated --short flag (#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkumatag authored Dec 16, 2023
1 parent c7645a7 commit 79719eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/ensure-kubectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
Detected kubectl version: ${kubectl_version[2]}.
Expand Down

0 comments on commit 79719eb

Please sign in to comment.