Skip to content

Commit

Permalink
Fix “dev-env” Makefile target to work with kubectl 1.28+ (#10350)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelocyreno authored Aug 26, 2023
1 parent 8d0b00d commit 9487907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if [[ ${HELM_VERSION} -lt 3.10.0 ]]; then
exit 1
fi

KUBE_CLIENT_VERSION=$(kubectl version --client --short 2>/dev/null | grep Client | awk '{print $3}' | cut -d. -f2) || true
KUBE_CLIENT_VERSION=$(kubectl version --client -oyaml 2>/dev/null | grep "minor:" | awk '{print $2}' | tr -d '"') || true
if [[ ${KUBE_CLIENT_VERSION} -lt 24 ]]; then
echo "Please update kubectl to 1.24.2 or higher"
exit 1
Expand Down

0 comments on commit 9487907

Please sign in to comment.