diff --git a/Makefile b/Makefile index 9000a8c4b1..d4d45a7993 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,20 @@ fmt: $(GOIMPORTS) $(GOIMPORTS) -w -local github.com/Azure/ARO-HCP $(shell go list -f '{{.Dir}}' -m | xargs) .PHONY: fmt +ct-lint: + # Find all parent directories of directories containing 'Chart.yaml', output via csv without the leading './' + CHART_DIRS=$(shell find . -type f -name 'Chart.yaml' -printf '%h\n' |sed 's|^\./||' | xargs -I {} dirname {} | sort -u | tr '\n' ',' | sed 's/,$$//') && \ + docker run --rm \ + -v $(PWD)/:/src/:z \ + -w /src/ \ + quay.io/helmpack/chart-testing:v3.11.0 ct lint \ + --chart-dirs="$${CHART_DIRS}" \ + --all \ + --validate-maintainers=false \ + --debug; \ + find . -type f -name 'Chart.lock' | xargs -I {} rm {}; \ # remove any Chart.lock files created with helm dependency build + find . -type f -name '*.tgz' | xargs -I {} rm {} # remove output artifacts from helm dependency build + # # Infra #