Skip to content

Commit

Permalink
[make] Adding install, uninstall and upgrade targets
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed May 17, 2024
1 parent e068c4e commit 25aebe0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion make/helm.mk
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 25aebe0

Please sign in to comment.