Skip to content

Commit c3a2b49

Browse files
author
Harrison Katz
committed
Add required clusterId to each helm deploy in Makefile
1 parent bb80c4c commit c3a2b49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,14 @@ endif
129129
KUBE_NAMESPACE ?= ngrok-operator
130130
HELM_RELEASE_NAME ?= ngrok-operator
131131
KUBE_DEPLOYMENT_NAME ?= ngrok-operator-manager
132+
KUBE_CLUSTER_NAME ?= development
132133

133134
.PHONY: deploy
134135
deploy: _deploy-check-env-vars docker-build manifests kustomize _helm_setup ## Deploy controller to the K8s cluster specified in ~/.kube/config.
135136
helm upgrade $(HELM_RELEASE_NAME) $(HELM_CHART_DIR) --install \
136137
--namespace $(KUBE_NAMESPACE) \
137138
--create-namespace \
139+
--set clusterId=$(KUBE_CLUSTER_NAME) \
138140
--set image.repository=$(IMG) \
139141
--set image.tag="latest" \
140142
--set podAnnotations."k8s\.ngrok\.com/test"="\{\"env\": \"local\"\}" \
@@ -151,6 +153,7 @@ deploy_gateway: _deploy-check-env-vars docker-build manifests kustomize _helm_se
151153
helm upgrade $(HELM_RELEASE_NAME) $(HELM_CHART_DIR) --install \
152154
--namespace $(KUBE_NAMESPACE) \
153155
--create-namespace \
156+
--set clusterId=$(KUBE_CLUSTER_NAME) \
154157
--set image.repository=$(IMG) \
155158
--set image.tag="latest" \
156159
--set podAnnotations."k8s\.ngrok\.com/test"="\{\"env\": \"local\"\}" \
@@ -168,6 +171,7 @@ deploy_with_bindings: _deploy-check-env-vars docker-build manifests kustomize _h
168171
helm upgrade $(HELM_RELEASE_NAME) $(HELM_CHART_DIR) --install \
169172
--namespace $(KUBE_NAMESPACE) \
170173
--create-namespace \
174+
--set clusterId=$(KUBE_CLUSTER_NAME) \
171175
--set image.repository=$(IMG) \
172176
--set image.tag="latest" \
173177
--set podAnnotations."k8s\.ngrok\.com/test"="\{\"env\": \"local\"\}" \

0 commit comments

Comments
 (0)