diff --git a/build/dev-env.sh b/build/dev-env.sh index 7df15a67e..33c23322e 100755 --- a/build/dev-env.sh +++ b/build/dev-env.sh @@ -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"