From 660accdeff4498b194ff6f1e8bc19d7d2aaa223b Mon Sep 17 00:00:00 2001 From: Abhinav Pandey Date: Thu, 19 May 2022 16:09:42 -0400 Subject: [PATCH] make namespace configurable for tink manifest Signed-off-by: Abhinav Pandey --- kube.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kube.mk b/kube.mk index 060998a12..8ff8b73c8 100644 --- a/kube.mk +++ b/kube.mk @@ -44,6 +44,7 @@ TINK_SERVER_IMAGE ?= quay.io/tinkerbell/tink-server TINK_CONTROLLER_IMAGE ?= quay.io/tinkerbell/tink-controller TINK_SERVER_TAG ?= latest TINK_CONTROLLER_TAG ?= latest +NAMESPACE ?= tink-system out/release/default/kustomization.yaml: config/default/kustomization.yaml rm -rf out/ @@ -51,7 +52,10 @@ out/release/default/kustomization.yaml: config/default/kustomization.yaml cp -a config/ out/release/ out/release/tink.yaml: bin/kustomize generate-manifests out/release/default/kustomization.yaml - (cd out/release/default && kustomize edit set image server=$(TINK_SERVER_IMAGE):$(TINK_CONTROLLER_TAG) controller=$(TINK_CONTROLLER_IMAGE):$(TINK_CONTROLLER_TAG)) + (cd out/release/default && \ + kustomize edit set image server=$(TINK_SERVER_IMAGE):$(TINK_CONTROLLER_TAG) controller=$(TINK_CONTROLLER_IMAGE):$(TINK_CONTROLLER_TAG) && \ + kustomize edit set namespace $(NAMESPACE) \ + ) kustomize build out/release/default -o $@ prettier --write $@