-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.pre-commit-config.yaml
45 lines (44 loc) · 1.36 KB
/
.pre-commit-config.yaml
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
38
39
40
41
42
43
44
45
default_language_version:
python: python3.9
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: mixed-line-ending
args: ["--fix=lf"]
- id: end-of-file-fixer
exclude: README.md
- id: trailing-whitespace
- repo: https://github.com/norwoodj/helm-docs
rev: v1.13.1
hooks:
- id: helm-docs
- repo: https://github.com/jtyr/kubeconform-helm
rev: v0.1.17
hooks:
- id: kubeconform-helm
alias: kubeconform-helm-min
name: "Kubeconform Helm - min k8s version"
files: ^charts/[^/]+/(\.kubeconform|\.helmignore|templates/NOTES.txt|.*\.(ya?ml|json|tpl))$
args:
- --kubernetes-version=1.27.0
- --exclude-charts=alfresco-common
- --values-dir=ci
- --strict
- repo: https://github.com/jtyr/kubeconform-helm
rev: v0.1.17
hooks:
- id: kubeconform-helm
name: "Kubeconform Helm - current k8s version"
files: ^charts/[^/]+/(\.kubeconform|\.helmignore|templates/NOTES.txt|.*\.(ya?ml|json|tpl))$
args:
- --exclude-charts=alfresco-common
- --values-dir=ci
- --strict
- repo: local
hooks:
- id: custom-check-chart-versions
name: Check Chart dependencies
entry: ./scripts/charts.sh
language: script
pass_filenames: false