-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.gen.cluster_app.mk
33 lines (26 loc) · 1.14 KB
/
Makefile.gen.cluster_app.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
30
31
32
# DO NOT EDIT. Generated with:
#
# devctl
#
# https://github.com/giantswarm/devctl/blob/cbdb6d5fa8756316d0c43e5945e3d3078c9e617e/pkg/gen/input/makefile/internal/file/Makefile.gen.cluster_app.mk.template
#
##@ Schema
VALUES=$(shell find ./helm -maxdepth 2 -name values.yaml)
VALUES_SCHEMA=$(shell find ./helm -maxdepth 2 -name values.schema.json)
CHART_README=$(shell find ./helm -maxdepth 2 -name README.md)
.PHONY: normalize-schema
normalize-schema: ## Normalize the JSON schema
go install github.com/giantswarm/schemalint/v2@v2
schemalint normalize $(VALUES_SCHEMA) -o $(VALUES_SCHEMA) --force
.PHONY: validate-schema
validate-schema: ## Validate the JSON schema
go install github.com/giantswarm/schemalint/v2@v2
schemalint verify $(VALUES_SCHEMA) --rule-set=cluster-app
.PHONY: generate-docs
generate-docs: ## Generate values documentation from schema
go install github.com/giantswarm/schemadocs@latest
schemadocs generate $(VALUES_SCHEMA) -o $(CHART_README)
.PHONY: generate-values
generate-values: ## Generate values.yaml from schema
go install github.com/giantswarm/helm-values-gen@v1
helm-values-gen $(VALUES_SCHEMA) -o $(VALUES) --force