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 21, 2024
1 parent 85eae98 commit ee2f519
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: $(HELM) ## Install the helm chart
# Install the helm chart in the cluster
$(HELM) install limitador-operator charts/limitador-operator

.PHONY: helm-uninstall
helm-uninstall: $(HELM) ## Uninstall the helm chart
# Uninstall the helm chart from the cluster
$(HELM) uninstall limitador-operator

.PHONY: helm-upgrade
helm-upgrade: $(HELM) ## Upgrade the helm chart
# Upgrade the helm chart in the cluster
$(HELM) upgrade limitador-operator charts/limitador-operator

0 comments on commit ee2f519

Please sign in to comment.