coherent-oss / python-kustomize

Kustomize for Kubernetes, but in Python
MIT License
1 stars 0 forks source link

Support Pydantic natively #10

Closed diogobaeder closed 6 months ago

diogobaeder commented 6 months ago

We should start supporting Pydantic models natively as sources for generating Kustomize YAML.

Since this tool is usually tracked as a deployment time dependency, I think there's no need to support Pydantic 1, and could go straight for Pydantic 2. I'm open to be convinced of the contrary though.

bswck commented 6 months ago

I'm very opposed to supporting Pydantic 1. Pydantic released an entire transformation tool so that people use v2.

diogobaeder commented 6 months ago

I'm not opposed, just want to avoid it if I can. But there are projects still relying on v1 and can't change it easily, unfortunately - but, since this tool is meant to be used outside of normal development builds, I think it's fine to not support v1.

diogobaeder commented 6 months ago

Implemented. Will be released soon.