Ensure helm repository and charts are available (#5123)
This commit is contained in:
parent
5f2f0e5db3
commit
5c9a5eee17
2 changed files with 8 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -236,9 +236,13 @@ dep-ensure: check-go-version ## Update and vendo go dependencies.
|
||||||
GO111MODULE=on go mod vendor
|
GO111MODULE=on go mod vendor
|
||||||
|
|
||||||
.PHONY: dev-env
|
.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
|
@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
|
.PHONY: live-docs
|
||||||
live-docs: ## Build and launch a local copy of the documentation website in http://localhost:3000
|
live-docs: ## Build and launch a local copy of the documentation website in http://localhost:3000
|
||||||
@docker buildx build \
|
@docker buildx build \
|
||||||
|
|
|
@ -89,6 +89,9 @@ kind load docker-image --name="${KIND_CLUSTER_NAME}" "${DEV_IMAGE}"
|
||||||
echo "[dev-env] deploying NGINX Ingress controller..."
|
echo "[dev-env] deploying NGINX Ingress controller..."
|
||||||
kubectl create namespace ingress-nginx &> /dev/null || true
|
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 -
|
cat << EOF | helm upgrade --install nginx-ingress stable/nginx-ingress --namespace=ingress-nginx --values -
|
||||||
controller:
|
controller:
|
||||||
image:
|
image:
|
||||||
|
|
Loading…
Reference in a new issue