-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 992 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 992 Bytes
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
37
CHART_DIR := charts/gvm-lite-stack
.PHONY: fmt fmt-check lint test render validate check cover
fmt:
@command -v yamlfmt >/dev/null 2>&1 || (echo "yamlfmt not installed" && exit 1)
yamlfmt -match_type doublestar \
"charts/**/Chart.yaml" \
"charts/**/values.yaml" \
"charts/**/values-*.yaml" \
"charts/**/tests/**/*.y*ml"
fmt-check:
@command -v yamlfmt >/dev/null 2>&1 || (echo "yamlfmt not installed" && exit 1)
yamlfmt -lint -match_type doublestar \
"charts/**/Chart.yaml" \
"charts/**/values.yaml" \
"charts/**/values-*.yaml" \
"charts/**/tests/**/*.y*ml"
lint:
helm lint $(CHART_DIR)
test:
helm unittest $(CHART_DIR)
render:
helm template $(CHART_DIR) > /tmp/gvm-lite-stack.rendered.yaml
validate:
@command -v kubeconform >/dev/null 2>&1 || (echo "kubeconform not installed" && exit 1)
helm template $(CHART_DIR) | kubeconform -strict -ignore-missing-schemas
check: fmt-check lint test validate
cover:
./scripts/helm_test_coverage.sh $(CHART_DIR)