How to generate apis types from existed crd definition yaml ? #3067
-
How to generate apis types from existed crd definition yaml ? For example i have a crd definition yaml, and i want to generate golang apis types, is there a way to do it ? The Scenario is below: And i know kubernetes-client Java have a action named "CRD Java Model Generate", it can generate apis types from crd definition yaml. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
We need help to doc it, could you please raise an issue for that? Give a look at https://github.com/kubernetes-sigs/kubebuilder/blob/master/docs/using_an_external_type.md (old doc) we need a new doc with the info updated. Also, see that we need to change a tool to properly support it but you can do that by doing some manual changes in the scaffolds done: #3055 |
Beta Was this translation helpful? Give feedback.
-
Closing since it is answered. |
Beta Was this translation helpful? Give feedback.
We need help to doc it, could you please raise an issue for that?
Also, please feel free to contribute with your help is very welcome.
Give a look at https://github.com/kubernetes-sigs/kubebuilder/blob/master/docs/using_an_external_type.md (old doc) we need a new doc with the info updated. Also, see that we need to change a tool to properly support it but you can do that by doing some manual changes in the scaffolds done: #3055