Hi Sig API Machinery,
I was wondering whether there is a Kubernetes generator that can create type
definitions and clients based on a CRD.
To give you some background, when I create my own APIs, I start by writing
`types.go`, run `
k8s.io/code-generator/cmd/client-gen` to give me a client and
create the CRD with `
sigs.k8s.io/controller-tools/cmd/controller-gen crd`.
But when someone else creates the CRD, possibly in some other language then
Golang, writes it by hand, or couples unwanted dependencies in helper functions
- how can I get the same generated code based on the CRD? Technically, I think
the projection should be able to be done the other way as well, but I have no
idea whether someone has done it already.
Best I've have so far is using a dynamic client but I'd prefer a typed one if
possible.
Thanks,
Tomas