Flux Schema Plugin Shifts Kubernetes Manifest Validation Left into CI
Flux 2.9 introduced Flux Schema, a CLI plugin that validates Kubernetes manifests against JSON Schema and CEL rules before they reach the cluster. It uses the same evaluation logic as the Kubernetes API server, catching type mismatches, unknown fields, and cross-field constraint violations at the pull request stage rather than during reconciliation. The plugin supports built-in schemas for Kubernetes, OpenShift, Gateway API, and Flux CRDs, requiring no additional setup for common resource types. Users can configure exclusions via a .fluxschema.yml file and integrate validation into GitHub Actions using two composite actions provided by the project. The plugin's schema catalog refreshes daily from upstream releases, ensuring CI always validates against current API versions rather than outdated snapshots.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in