-
Notifications
You must be signed in to change notification settings - Fork 828
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 1.29 KB
/
Makefile
File metadata and controls
37 lines (28 loc) · 1.29 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
37
.PHONY: lint test
IMAGE_CHART_TESTING=quay.io/helmpack/chart-testing:v3.14.0
IMAGE_HELM_CHANGELOG=ghcr.io/traefik/helm-changelog:v1.0.0
IMAGE_HELM_DOCS=jnorwood/helm-docs:v1.14.2
traefik/tests/__snapshot__:
@mkdir traefik/tests/__snapshot__
test: traefik/tests/__snapshot__
./hack/test.sh
test-ns:
./hack/check-ns.sh
lint:
docker run ${DOCKER_ARGS} --env GIT_SAFE_DIR="true" --entrypoint /bin/sh --rm -v $(CURDIR):/charts -w /charts $(IMAGE_CHART_TESTING) /charts/hack/ct.sh lint
docs:
docker run --rm -v "$(CURDIR):/helm-docs" $(IMAGE_HELM_DOCS) -o VALUES.md
# $ helm plugin install https://github.com/helm-unittest/helm-unittest.git
# To launch only one test
# $ helm unittest -f 'tests/oci-config_test.yaml' traefik
test-%:
docker run ${DOCKER_ARGS} --network=host --env GIT_SAFE_DIR="true" --entrypoint /bin/sh --rm -v $(CURDIR):/charts -v $(HOME)/.kube:/root/.kube -w /charts $(IMAGE_CHART_TESTING) /charts/hack/ct.sh $*
# Requires to install schema generation plugin beforehand
# $ helm plugin install https://github.com/losisin/helm-values-schema-json.git
schema:
cd traefik && helm schema --use-helm-docs
changelog:
@echo "== Updating Changelogs..."
@docker run -it --rm -v $(CURDIR):/data $(IMAGE_HELM_CHANGELOG) /app/helm-changelog --update
@./hack/changelog.sh
@echo "== Updating finished"