18 lines
451 B
Makefile
Raw Normal View History

2022-05-11 03:10:22 +02:00
.PHONY: dev prod inflate
2022-05-05 17:39:08 +02:00
dev:
@kubectl kustomize --enable-helm dev
prod: load-prod-env
2022-05-16 22:23:53 +02:00
# go install https://git.netflux.io/rob/envfilesubst@latest
@kubectl kustomize --enable-helm prod | envfilesubst -f prod/secrets/env
2022-05-05 17:39:08 +02:00
load-prod-env:
$(eval include prod/secrets/env)
$(eval export)
2022-05-11 03:10:22 +02:00
# Usage: make inflate name=prometheus chart=prometheus-community/prometheus [base=dev]
base=base
2022-05-11 03:10:22 +02:00
inflate:
@bin/helm-chart-inflate.sh $(name) $(chart) $(base)