Skip to content

mcinquin/pre-commit-kustomize-helm

Repository files navigation

pre-commit-kustomize-helm

pre-commit hook which runs kustomize build command to test your Kubernetes resources.

Example of .pre-commit-config.yaml that verifies that 3 overlays are not broken

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v4.5.0
  hooks:
  - id: check-yaml
    args: [--allow-multiple-documents]
  - id: end-of-file-fixer
  - id: trailing-whitespace

- repo: https://github.com/mcinquin/pre-commit-kustomize-helm
  rev: v1.0.0
  hooks:
  - id: kustomize
    name: kustomize-development
    args: [overlays/development]
    verbose: false
  - id: kustomize
    name: kustomize-staging
    args: [overlays/staging]
    verbose: false
  - id: kustomize
    name: kustomize-production
    args: [overlays/production]
    verbose: false

Next steps

About

Pre-commit hooks for Kustomize and Helm

Resources

License

Stars

Watchers

Forks

Packages

No packages published