crd2jsonschema
v0.2.0
Published
A simple utility that converts a Kubernetes CustomResourceDefinition to a JSON Schema
Downloads
5
Maintainers
Readme
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
- [x] Transform simple
CustomResourceDefinitions
- [ ] Handle YAML files that contain multiple documents
- [ ] Create a GitHub page to store schemas for common CRDs