Ensure helm repository and charts are available (#5123)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-02-19 14:10:28 -03:00 committed by GitHub
parent 5f2f0e5db3
commit 5c9a5eee17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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 \

View file

@ -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: