Frankkkkk / pykorm

A python 🐍 kubernetes ☸️ ORM πŸš€. Very useful when writing operators for your CRDs with Kopf.
MIT License
73 stars 4 forks source link

Utility to generate models from yaml definitions #21

Open YiannisGkoufas opened 3 years ago

YiannisGkoufas commented 3 years ago

Very useful tool! Was wondering whether it would be useful to have a utility that takes a CRD definition in yaml format and produces the necessary pykorm models.

Frankkkkk commented 3 years ago

Hi ! Indeed, I like the idea. As of now we keep "duplicate" copies of the .yaml and .py for each CRD. A tool that could convert both ways could be very useful indeed.

I'm open to a MR :P but if I've got some time I could maybe try something in some weeks.

Cheers and have a nice week