0.2.0 • Published 1 year ago
crd2jsonschema v0.2.0
CRD2JsonSchema
Keep the Kubernetes CustomResourceDefinitions
that you rely on day-to-day from driving you mad by generating schemas for them!
This simple library and CLI application transforms a CustomResourceDefinition
into a JSON Schema for easier editing.
How does it work?
Kubernetes CRDs currently use OpenAPIv3 to define the shape of custom objects. Thankfully OpenAPIv3 gets us 95% the way there, as it uses JSON Schema to define the shape of objects.
Road-map
- Transform simple
CustomResourceDefinitions
- Handle YAML files that contain multiple documents
- Create a GitHub page to store schemas for common CRDs