I have a helms folder structure and am trying to run the kubeconform pre-commit hook to test my yaml files. However, I everytime I run it, the files just get skipped.
Project
├── Makefile
├── helms
│ └── test-files
│ ├── Chart.yaml
│ ├── templates
│ │ ├── _helpers.tpl
│ │ ├── test-configmap.yaml
│ │ ├── test-deployment.yaml
│ │ ├── test-service.yaml
│ └── values.yaml
├──.pre-commit-config.yaml
These are the contents of .pre-commit-config.yaml:
repos:
- repo: https://github.com/jtyr/kubeconform-helm
rev: v0.1.16
hooks:
- id: kubeconform-helm
args:
- --verbose
- --summary
This is what I am running in my terminal:
pre-commit run --all-files
This is the output:
Kubeconform Helm.....................................(no files to check)Skipped
by default this repo uses this file filter list:
if your charts do not match that you will need to override
fileswith a more appropriate patterndisclaimer: I wrote pre-commit