forked from RemoteSync/librnms-helm-charts
Add Makefile and helm-docs for value injection into readme
Adjust readme, add comments to values Bump chart version
This commit is contained in:
40
Makefile
Normal file
40
Makefile
Normal file
@@ -0,0 +1,40 @@
|
||||
DOCS_IMAGE_VERSION="v1.14.2"
|
||||
|
||||
LINT_IMAGE_VERSION="v3.8.0"
|
||||
|
||||
# Charts's path relative to the current directory.
|
||||
CHARTS := $(wildcard ./charts/*)
|
||||
|
||||
CHARTS_NAMES := $(notdir $(CHARTS))
|
||||
|
||||
.PHONY: lint
|
||||
lint: helm-deps-update $(addprefix lint-, $(CHARTS_NAMES))
|
||||
|
||||
lint-%:
|
||||
@docker run \
|
||||
-it \
|
||||
-e HOME=/home/ct \
|
||||
--mount type=tmpfs,destination=/home/ct \
|
||||
--workdir=/data \
|
||||
--volume $$(pwd):/data \
|
||||
-u $$(id -u) \
|
||||
quay.io/helmpack/chart-testing:$(LINT_IMAGE_VERSION) \
|
||||
ct lint --config ./ct.yaml --charts ./charts/$*
|
||||
|
||||
.PHONY: docs
|
||||
docs: $(addprefix docs-, $(CHARTS_NAMES))
|
||||
|
||||
docs-%:
|
||||
@docker run \
|
||||
--rm \
|
||||
--workdir=/helm-docs \
|
||||
--volume "$$(pwd):/helm-docs" \
|
||||
-u $$(id -u) \
|
||||
jnorwood/helm-docs:$(DOCS_IMAGE_VERSION) \
|
||||
helm-docs -c ./charts/$* -t ./README.gotmpl -o ./README.md
|
||||
|
||||
.PHONY: helm-deps-update
|
||||
helm-deps-update: $(addprefix helm-deps-update-, $(CHARTS_NAMES))
|
||||
|
||||
helm-deps-update-%:
|
||||
helm dependency update ./charts/$*
|
Reference in New Issue
Block a user