Merge pull request #5124 from ElvinEfendi/dev-env-improvements
make dev-env improvements
This commit is contained in:
commit
752a3305ee
1 changed files with 11 additions and 1 deletions
|
@ -32,7 +32,7 @@ DEV_IMAGE=${REGISTRY}/nginx-ingress-controller:${TAG}
|
||||||
|
|
||||||
if ! command -v kind &> /dev/null; then
|
if ! command -v kind &> /dev/null; then
|
||||||
echo "kind is not installed"
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -41,6 +41,16 @@ if ! command -v kubectl &> /dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
KUBE_CLIENT_VERSION=$(kubectl version --client --short | awk '{print $3}' | cut -d. -f2) || true
|
||||||
if [[ ${KUBE_CLIENT_VERSION} -lt 14 ]]; then
|
if [[ ${KUBE_CLIENT_VERSION} -lt 14 ]]; then
|
||||||
echo "Please update kubectl to 1.15 or higher"
|
echo "Please update kubectl to 1.15 or higher"
|
||||||
|
|
Loading…
Reference in a new issue