-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.development.mk
29 lines (23 loc) · 1.08 KB
/
Makefile.development.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.DEFAULT_GOAL:=help
##@ Build
TEST_CASE ?=
ifdef TEST_CASE
CI_FILE = "ci/test-$(TEST_CASE)-values.yaml"
else
CI_FILE ?= "ci/ci-values.yaml"
endif
APPLICATION="helm/cluster-aws"
.PHONY: template
template: ## Output the rendered Helm template
$(eval CHART_DIR := "helm/cluster-aws")
$(eval HELM_RELEASE_NAME := $(shell yq .global.metadata.name ${CHART_DIR}/${CI_FILE}))
$(eval ORG_NAME := org-$(shell yq .global.metadata.organization ${CHART_DIR}/${CI_FILE}))
@helm template -n ${ORG_NAME} ${HELM_RELEASE_NAME} ${CHART_DIR} --values ${CHART_DIR}/${CI_FILE} --debug
.PHONY: template-in-cluster
template-in-cluster: ## Output the rendered Helm template
$(eval CHART_DIR := "helm/cluster-aws")
$(eval HELM_RELEASE_NAME := $(shell yq .global.metadata.name ${CHART_DIR}/${CI_FILE}))
$(eval ORG_NAME := org-$(shell yq .global.metadata.organization ${CHART_DIR}/${CI_FILE}))
@helm template --dry-run=server -n ${ORG_NAME} ${HELM_RELEASE_NAME} ${CHART_DIR} --values ${CHART_DIR}/${CI_FILE} --debug
.PHONY: generate
generate: normalize-schema validate-schema generate-docs generate-values update-deps