-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 1.32 KB
/
Copy pathMakefile
File metadata and controls
36 lines (28 loc) · 1.32 KB
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
33
34
35
36
HELM_DOCS_VERSION := v1.14.2
HELM_SCHEMA_VERSION := 0.18.1
.PHONY: docs schema lint lint-values-coverage lint-beta64-contract template test
## Generate per-chart README.md from README.md.gotmpl + values.yaml comments.
docs:
docker run --rm -v "$(CURDIR):/helm-docs" -u $(shell id -u) jnorwood/helm-docs:$(HELM_DOCS_VERSION) -c charts
## Generate values.schema.json from values.yaml # @schema annotations.
schema:
docker run --rm -v "$(CURDIR)/charts:/charts" -u $(shell id -u) -w /charts ghcr.io/dadav/helm-schema:$(HELM_SCHEMA_VERSION) -c /charts
## Lint all charts.
lint:
helm lint charts/authup
ct lint --config .github/configs/ct.yaml || true
## Every .Values.* referenced in templates must exist in values.yaml — a strict
## generated schema silently disables any feature whose key is missing.
lint-values-coverage:
python3 scripts/check-values-coverage.py charts/authup
## Assert the authup process, configuration and filesystem contract through beta.68.
lint-beta64-contract:
python3 scripts/check-beta64-contract.py charts/authup all
## Render the chart with every ci values file.
template:
@for f in charts/authup/ci/*-values.yaml; do \
echo "=== $$f"; \
helm template test charts/authup -f "$$f" >/dev/null || exit 1; \
done
@echo "all ci values render"
test: lint template lint-values-coverage lint-beta64-contract