Fix “dev-env” Makefile target to work with kubectl 1.28+ (#10350)
This commit is contained in:
parent
8d0b00dd26
commit
9487907fa1
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ if [[ ${HELM_VERSION} -lt 3.10.0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [[ ${KUBE_CLIENT_VERSION} -lt 24 ]]; then
|
||||||
echo "Please update kubectl to 1.24.2 or higher"
|
echo "Please update kubectl to 1.24.2 or higher"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue