-
Notifications
You must be signed in to change notification settings - Fork 128
/
Makefile
35 lines (28 loc) · 1.06 KB
/
Makefile
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
.PHONY: unittest
deps-docs:
go install kubepack.dev/[email protected]
docs: deps-docs
find . -name "doc.yaml" | \
xargs -L1 dirname | \
xargs -I% sh -c \
"chart-doc-gen -c %/Chart.yaml -v %/values.yaml -d %/doc.yaml -t %/README.tpl > %/README.md"
lint:
find . -name "Chart.lock" -type f -delete
docker run --rm -e CT_VALIDATE_MAINTAINERS=false -u $(shell id -u) -v $(PWD):/charts quay.io/helmpack/chart-testing:latest sh -c "cd /charts; ct lint --target-branch=main --all"
deps-unittest:
@helm plugin install https://github.com/helm-unittest/helm-unittest --version=0.6.1 || true
unittest: deps-unittest
find ./charts -name "Chart.yaml" | \
xargs -L1 dirname | \
xargs -I% sh -c \
"helm dependency build % ; helm unittest --strict -f "tests/**/*_test.yaml" %"
unit-test-rs: deps-unittest
find ./charts/registry-scanner -name "Chart.yaml" | \
xargs -L1 dirname | \
xargs -I% sh -c \
"helm dependency build % ; helm unittest --strict %"
deps:
find ./charts -name "Chart.yaml" | \
xargs -L1 dirname | \
xargs -I% sh -c \
"helm dependency build %"