-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[make] Building helm chart templates (manifests)
- Loading branch information
1 parent
f140310
commit 17bd29c
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- ../default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |