Skip to content

Action — kubeconform

Validates Kubernetes manifests with kubeconform. Optionally validates CRDs against the Datree CRDs-catalog (cert-manager, Traefik, etc.).

Usage

yaml
steps:
  - uses: actions/checkout@v4

  - uses: KevinDeBenedetti/github-workflows/.github/actions/kubeconform@main
    with:
      paths: kubernetes/

Inputs

InputTypeDefaultDescription
pathsstringkubernetes/Directory containing Kubernetes manifests
excludestring*-values.yamlFilename pattern to exclude from find
include-crds-catalogbooleantrueValidate CRDs against the Datree CRDs-catalog

Steps

  1. Download and install kubeconform 0.7.0 to /usr/local/bin
  2. Run kubeconform -strict -summary on all *.yaml files under paths (excluding exclude)

Notes

  • Run in strict mode — any unknown field causes a validation failure.
  • include-crds-catalog: true (default) adds the Datree CRDs-catalog as an extra schema source, enabling validation of common CRD types beyond the built-in Kubernetes schemas.
  • Helm values files (*-values.yaml) are excluded by default since they are not valid Kubernetes manifests.