Skip to content

Commit

Permalink
Add required clusterId to each helm deploy in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
hjkatz committed Nov 1, 2024
1 parent bb80c4c commit c3a2b49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ endif
KUBE_NAMESPACE ?= ngrok-operator
HELM_RELEASE_NAME ?= ngrok-operator
KUBE_DEPLOYMENT_NAME ?= ngrok-operator-manager
KUBE_CLUSTER_NAME ?= development

.PHONY: deploy
deploy: _deploy-check-env-vars docker-build manifests kustomize _helm_setup ## Deploy controller to the K8s cluster specified in ~/.kube/config.
helm upgrade $(HELM_RELEASE_NAME) $(HELM_CHART_DIR) --install \
--namespace $(KUBE_NAMESPACE) \
--create-namespace \
--set clusterId=$(KUBE_CLUSTER_NAME) \
--set image.repository=$(IMG) \
--set image.tag="latest" \
--set podAnnotations."k8s\.ngrok\.com/test"="\{\"env\": \"local\"\}" \
Expand All @@ -151,6 +153,7 @@ deploy_gateway: _deploy-check-env-vars docker-build manifests kustomize _helm_se
helm upgrade $(HELM_RELEASE_NAME) $(HELM_CHART_DIR) --install \
--namespace $(KUBE_NAMESPACE) \
--create-namespace \
--set clusterId=$(KUBE_CLUSTER_NAME) \
--set image.repository=$(IMG) \
--set image.tag="latest" \
--set podAnnotations."k8s\.ngrok\.com/test"="\{\"env\": \"local\"\}" \
Expand All @@ -168,6 +171,7 @@ deploy_with_bindings: _deploy-check-env-vars docker-build manifests kustomize _h
helm upgrade $(HELM_RELEASE_NAME) $(HELM_CHART_DIR) --install \
--namespace $(KUBE_NAMESPACE) \
--create-namespace \
--set clusterId=$(KUBE_CLUSTER_NAME) \
--set image.repository=$(IMG) \
--set image.tag="latest" \
--set podAnnotations."k8s\.ngrok\.com/test"="\{\"env\": \"local\"\}" \
Expand Down

0 comments on commit c3a2b49

Please sign in to comment.