helmlint pre-commit should allow specifying --kube-version flag
Closed this issue · 1 comments
ericmenard commented
helm lint allow to specifying --kube-version to set Capabilities
See https://helm.sh/docs/helm/helm_lint/
example:
helm lint -f mychart/values.yaml mychart --kube-version=1.29.4
However, it seems impossible to set it in the helmlint pre-commit args. I'm thinking about something like
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.23 # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
hooks:- id: helmlint
name: helmlint (helm chart)
args: [--kube-version, 1.29.4]
- id: helmlint
james03160927 commented
Created a new release with this change - https://github.com/gruntwork-io/pre-commit/releases/tag/v0.1.24.