Merge pull request #5124 from ElvinEfendi/dev-env-improvements

make dev-env improvements
This commit is contained in:
Kubernetes Prow Robot 2020-02-19 14:13:46 -08:00 committed by GitHub
commit 752a3305ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ DEV_IMAGE=${REGISTRY}/nginx-ingress-controller:${TAG}
if ! command -v kind &> /dev/null; then
echo "kind is not installed"
echo "Use a package manager or visit the official site https://kind.sigs.k8s.io"
echo "Use a package manager (i.e 'brew install kind') or visit the official site https://kind.sigs.k8s.io"
exit 1
fi
@ -41,6 +41,16 @@ if ! command -v kubectl &> /dev/null; then
exit 1
fi
if ! docker buildx version &> /dev/null; then
echo "Make sure you have Docker 19.03 or higher and experimental features enabled"
exit 1
fi
if ! command -v helm &> /dev/null; then
echo "Please install helm"
exit 1
fi
KUBE_CLIENT_VERSION=$(kubectl version --client --short | awk '{print $3}' | cut -d. -f2) || true
if [[ ${KUBE_CLIENT_VERSION} -lt 14 ]]; then
echo "Please update kubectl to 1.15 or higher"