We use Kubernetes modules for proper Job object deserialisation in our SDK.
We discussed about using openapi-gen
to generate Kubernetes modules in addition to Training Operator modules: #1719 (comment).
That will help to avoid hack to import Kubernetes modules in our post-gen
script.
Although, all Kubernetes modules will be stored in Training Operator SDK modules which will increase SDK size.
Let's discuss what is the best long term approach we should follow.
cc @tenzen-y @johnugeorge
/area sdk