From 1152f6a55e8a72371ce898037e21ccd88bb5a6df Mon Sep 17 00:00:00 2001 From: Mansur Uralov Date: Thu, 5 Oct 2023 09:11:35 +0200 Subject: [PATCH] Add render manifests taks and release script --- Makefile | 5 +++++ scripts/release.sh | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 scripts/release.sh diff --git a/Makefile b/Makefile index e6180594..39d3aadb 100644 --- a/Makefile +++ b/Makefile @@ -172,6 +172,11 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} $(KUSTOMIZE) build config/default | kubectl apply -f - +.PHONY: render-manifest +render-manifest: manifests kustomize + cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} + $(KUSTOMIZE) build config/default > eventing-manager.yaml + .PHONY: undeploy undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion. $(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f - diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100644 index 00000000..0ff4e023 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,4 @@ +MODULE_VERSION=${PULL_BASE_REF} make render-manifest +echo "Generated eventing-manager.yaml:" +cat eventing-manager.yaml +MODULE_VERSION=${PULL_BASE_REF} make module-build \ No newline at end of file