Git hooks to integrate with pre-commit.
Prevent deprecated kubernetes APIs on helm charts using pluto.
This pre-commit hook can be added into the .pre-commit-config.yaml file like this:
- repo: https://github.com/thatmlopsguy/pre-commit-hooks
rev: v0.0.4
hooks:
- id: helm-pluto-chart-check
args: ["--charts", "tests/example-charts"]The hook uses helm template internally and passes its output to the pluto
usage: helm-pluto.py [-h] [--charts CHARTS]
Check Helm charts with Pluto
options:
-h, --help show this help message and exit
--charts CHARTS Path to the directory containing Helm chartsRuns kube-score against a Helm charts directory.
This pre-commit hook can be added into the .pre-commit-config.yaml file like this:
- repo: https://github.com/thatmlopsguy/pre-commit-hooks
rev: v0.0.4
hooks:
- id: kubectl-score-chart-check
args: ["--charts", "tests/example-charts"]The hook uses helm template internally and passes its output to the kube-score
usage: kube-score.py [-h] [--charts CHARTS]
Check Helm charts with kube-score
options:
-h, --help show this help message and exit
--charts CHARTS Path to the directory containing Helm chartsValidate Prometheus rules files using promtool.
This pre-commit hook can be added into the .pre-commit-config.yaml file like this:
- repo: https://github.com/thatmlopsguy/pre-commit-hooks
rev: v0.0.4
hooks:
- id: promtool-check-rules
files: rules\.yml$usage: promtool.py [-h] [--type {rules,config}] [--fail-fast] [files ...]
Validate Prometheus rules and configuration with promtool
positional arguments:
files Files to check
options:
-h, --help show this help message and exit
--type {rules,config} Type of check to run: 'rules' or 'config' (default: rules)
--fail-fast Exit on first failureValidate Prometheus configuration files using promtool.
This pre-commit hook can be added into the .pre-commit-config.yaml file like this:
- repo: https://github.com/thatmlopsguy/pre-commit-hooks
rev: v0.0.4
hooks:
- id: promtool-check-config
files: prometheus\.yml$MIT