Skip to content

Commit

Permalink
new(event-generator): add linting target to Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Aldo Lacuku <[email protected]>
  • Loading branch information
alacuku authored and poiana committed Jul 12, 2022
1 parent 0e80270 commit c6a1f71
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions event-generator/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#generate helm documentation
DOCS_IMAGE_VERSION="v1.11.0"

#Here we use the "latest" tag since our CI uses the same(https://github.com/falcosecurity/charts/blob/2f04bccb5cacbbf3ecc2d2659304b74f865f41dd/.circleci/config.yml#L16).
LINT_IMAGE_VERSION="latest"

docs:
docker run \
--rm \
Expand All @@ -9,3 +12,14 @@ docs:
-u $$(id -u) \
jnorwood/helm-docs:$(DOCS_IMAGE_VERSION) \
helm-docs -t ./README.gotmpl -o ./generated/helm-values.md

lint: helm-repo-update
docker run \
-it \
--workdir=/data \
--volume $$(pwd)/..:/data \
quay.io/helmpack/chart-testing:latest \
ct lint --config ./tests/ct.yaml --charts ./event-generator --chart-dirs .

helm-repo-update:
helm repo update

0 comments on commit c6a1f71

Please sign in to comment.