Skip to content

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

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages