From 5c9a5eee17db9341ddddd1c6ea085c9cf4a7ef4a Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Wed, 19 Feb 2020 14:10:28 -0300 Subject: [PATCH] Ensure helm repository and charts are available (#5123) --- Makefile | 6 +++++- build/dev-env.sh | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a555cee6b..e1ea403a9 100644 --- a/Makefile +++ b/Makefile @@ -236,9 +236,13 @@ dep-ensure: check-go-version ## Update and vendo go dependencies. GO111MODULE=on go mod vendor .PHONY: dev-env -dev-env: check-go-version ## Starts a local Kubernetes cluster using minikube, building and deploying the ingress controller. +dev-env: check-go-version ## Starts a local Kubernetes cluster using kind, building and deploying the ingress controller. @build/dev-env.sh +.PHONY: dev-env-stop +dev-env-stop: ## Deletes local Kubernetes cluster created by kind. + @kind delete cluster --name ingress-nginx-dev + .PHONY: live-docs live-docs: ## Build and launch a local copy of the documentation website in http://localhost:3000 @docker buildx build \ diff --git a/build/dev-env.sh b/build/dev-env.sh index aa97fb5db..7df15a67e 100755 --- a/build/dev-env.sh +++ b/build/dev-env.sh @@ -89,6 +89,9 @@ kind load docker-image --name="${KIND_CLUSTER_NAME}" "${DEV_IMAGE}" echo "[dev-env] deploying NGINX Ingress controller..." kubectl create namespace ingress-nginx &> /dev/null || true +helm repo add stable https://kubernetes-charts.storage.googleapis.com &> /dev/null || true +helm repo update &> /dev/null || true + cat << EOF | helm upgrade --install nginx-ingress stable/nginx-ingress --namespace=ingress-nginx --values - controller: image: