Skip to content

Commit

Permalink
[make] Building helm chart templates (manifests)
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed May 17, 2024
1 parent f140310 commit 17bd29c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/helm/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- ../default
12 changes: 12 additions & 0 deletions make/helm.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
##@ Helm Charts

.PHONY: helm-build
helm-build: ## Builds 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
V="$(RELATED_IMAGE_LIMITADOR)" $(YQ) eval '(select(.kind == "Deployment").spec.template.spec.containers[].env[] | select(.name == "RELATED_IMAGE_LIMITADOR").value) = strenv(V)' -i config/manager/manager.yaml
# Replace the controller image
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

0 comments on commit 17bd29c

Please sign in to comment.