fiaas / k8s

Python client library for the Kubernetes API
https://fiaas.github.io/
Apache License 2.0
39 stars 24 forks source link

Code generator to create a Model from a JSON-Schema #97

Open mortenlj opened 2 years ago

mortenlj commented 2 years ago

CRDs in the cluster can have an attached JSON-Schema. If the CRD is from some other project, working with it using k8s requires that you define a Model in your own code.

It would be very useful if k8s had a generator that could create the Model from a JSON-Schema, which you could use in such projects.

The same generator could with some small adjustments be used to generate models from the standard Kubernetes API, replacing our hand crafted models.