From c3a2b49b3dca31a642ac00bbba04f6c3c57fa2ba Mon Sep 17 00:00:00 2001 From: Harrison Katz Date: Fri, 1 Nov 2024 10:01:18 -0400 Subject: [PATCH] Add required clusterId to each helm deploy in Makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 1a693e92..fb653417 100644 --- a/Makefile +++ b/Makefile @@ -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\"\}" \ @@ -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\"\}" \ @@ -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\"\}" \