diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 60a9cad..33f0f04 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -56,3 +56,18 @@ repos: types: [python] always_run: true pass_filenames: false + + - id: helm-lint + name: Helm Lint + entry: bash -c 'for chart in charts/*; do [ -f "$chart/Chart.yaml" ] && helm lint "$chart" || true; done' + language: system + types: [yaml] + always_run: true + + - id: helm-docs + name: Generate Helm Chart README with helm-docs + entry: bash -c 'find charts -type f -name Chart.yaml | grep . && helm-docs -c charts || echo "No Helm chart found, skipping helm-docs."' + language: system + types: [yaml] + pass_filenames: false + always_run: true diff --git a/.tool-versions b/.tool-versions index c9bf870..661bc78 100644 --- a/.tool-versions +++ b/.tool-versions @@ -5,3 +5,5 @@ checkov 3.2.352 awscli 2.27.4 pre-commit 4.2.0 python 3.13.3 +helm 3.8.0 +helm-docs 1.13.1