Skip to content

Commit 11e1bbd

Browse files
committed
hack: remove '--short' option
The default is now '--short' and '--short' option has been removed. Breaking change from this commit: kubernetes/kubernetes@3f07fc3 Signed-off-by: Mathieu Tortuyaux <[email protected]>
1 parent 8667087 commit 11e1bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/ensure-kubectl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ verify_kubectl_version() {
4040
fi
4141

4242
local kubectl_version
43-
IFS=" " read -ra kubectl_version <<< "$(kubectl version --client --short)"
43+
IFS=" " read -ra kubectl_version <<< "$(kubectl version --client)"
4444
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
4545
cat <<EOF
4646
Detected kubectl version: ${kubectl_version[2]}.

0 commit comments

Comments
 (0)