Skip to content

Commit 7f6d7ed

Browse files
committed
[precommit] Custom helmlint script which helm dep update first
1 parent dfdada4 commit 7f6d7ed

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/Gaspi/pre-commit-hooks
3-
rev: v0.3
3+
rev: v0.5
44
hooks:
55
# Validate schemas using the jsonschema.validators package
66
- id: validate-json-schemas
@@ -20,6 +20,8 @@ repos:
2020
args:
2121
- --branch
2222
- main
23+
# Run `helm dependency update` then `helm lint` on all (modified) charts
24+
- id: helmlint
2325

2426
- repo: https://github.com/pre-commit/pre-commit-hooks
2527
rev: v5.0.0
@@ -31,10 +33,3 @@ repos:
3133
- id: end-of-file-fixer
3234
# Check trailing whitespaces (ignore generated charts)
3335
- id: trailing-whitespace
34-
35-
# Run `helm lint` on all (modified) charts: this may require a manual `helm dep update`:
36-
# ls charts | xargs -i{} bash -c "cd charts/{} && helm dep update"
37-
- repo: https://github.com/gruntwork-io/pre-commit
38-
rev: v0.1.15
39-
hooks:
40-
- id: helmlint

0 commit comments

Comments
 (0)