From 25aebe0bd75aaa16e61ee9fcb8911028676c9593 Mon Sep 17 00:00:00 2001 From: dd di cesare Date: Fri, 17 May 2024 14:28:13 +0200 Subject: [PATCH] [make] Adding install, uninstall and upgrade targets --- make/helm.mk | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/make/helm.mk b/make/helm.mk index 8c9b7a3a..e5b7f266 100644 --- a/make/helm.mk +++ b/make/helm.mk @@ -1,7 +1,7 @@ ##@ Helm Charts .PHONY: helm-build -helm-build: ## Builds the helm chart from kustomize manifests +helm-build: ## Build the helm chart from kustomize manifests # Generate kustomize manifests out of code notations $(OPERATOR_SDK) generate kustomize manifests -q # Set desired operator image and related limitador image @@ -10,3 +10,18 @@ helm-build: ## Builds the helm chart from kustomize manifests cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG) # Build the helm chart templates from kustomize manifests $(KUSTOMIZE) build config/helm > charts/limitador-operator/templates/manifests.yaml + +.PHONY: helm-install +helm-install: ## Install the helm chart + # Install the helm chart in the cluster + helm install limitador-operator charts/limitador-operator + +.PHONY: helm-uninstall +helm-uninstall: ## Uninstall the helm chart + # Uninstall the helm chart from the cluster + helm uninstall limitador-operator + +.PHONY: helm-upgrade +helm-upgrade: ## Upgrade the helm chart + # Upgrade the helm chart in the cluster + helm upgrade limitador-operator charts/limitador-operator