Skip to content

neteye-platform/kubeconform-precommit

Repository files navigation

Kubeconform Pre-Commit

A pre-commit hook to validate Kubernetes manifests using kubeconform.

Prerequisites

Usage

Add the following to your .pre-commit-config.yaml:

repos:
  - repo: https://github.com/neteye-platform/kubeconform-precommit
    rev: v0.1.0
    hooks:
      - id: kubeconform

Kustomize mode

To validate kustomize overlays, use the kubeconform-kustomize hook and pass the overlay paths via args:

repos:
  - repo: https://github.com/neteye-platform/kubeconform-precommit
    rev: v0.1.0
    hooks:
      - id: kubeconform-kustomize
        args: [path/to/overlay1, path/to/overlay2]

Passing extra arguments to kubeconform

Use --kubeconform-args to forward flags to kubeconform:

hooks:
  - id: kubeconform
    args: [--kubeconform-args, "-strict -ignore-missing-schemas"]

About

pre-commit hook to validate Kubernetes manifests with Kubeconform, with support for regex filtering and Kustomize builds

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages