Flux Schema Config
Official Flux CLI plugin documentation.
Flux Schema is a CLI for validating Kubernetes YAML manifests against JSON Schema and CEL rules using the same evaluation semantics as the Kubernetes API server. It ships as a single Go binary with a built-in catalog covering Kubernetes, OpenShift, Gateway API, and the Flux ecosystem CRDs.
This project is inspired by kubeconform, adding CEL rule evaluation,
built-in schema extraction for CRDs & OpenAPI swagger, and a curated catalog
refreshed automatically from upstream stable releases.
x-kubernetes-validations rules evaluated with the
same engine as Kubernetes API server..fluxschema.yml file for reproducible runs across local and CI environments.Install the plugin with the Flux CLI:
flux plugin install schema
For GitHub Actions runners, use the
actions/setup action.
Validate a directory tree against the built-in catalog and 3rd-party schemas:
flux schema validate ./manifests \
--schema-location default \
--schema-location https://raw.githubusercontent.com/datreeio/CRDs-catalog/main
Build a kustomize overlay and validate the generated manifests:
kustomize build ./clusters/production | flux schema validate --verbose
Render a Helm chart and validate the generated manifests:
helm template ./charts/app | flux schema validate -v --skip-missing-schemas
Build a ResourceSet and validate the generated manifests:
flux operator build rset -f tenants.yaml | flux schema validate
Emit a structured report for CI tooling:
flux schema validate ./manifests -o json
Extract JSON Schemas from your CRDs and layer them on top of the built-in catalog:
kubectl get crds -o yaml | flux schema extract crd -d ./my-catalog
flux schema validate ./manifests \
--schema-location ./my-catalog \
--schema-location default
Official Flux CLI plugin documentation.
Official Flux CLI plugin documentation.
Official Flux CLI plugin documentation.
Official Flux CLI plugin documentation.
Official Flux CLI plugin documentation.
Official Flux CLI plugin documentation.