New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
controller-gen Unknown supported Kind Interface when generating crd #294
Comments
For the moment, at least, I'd use |
alternatively, |
Thanks for your reply. @DirectXMan12 |
I use runtime.RawExtension as the type, and generated a object type in crd. |
Using interface type is a direct idea for user to generate crd. |
sorry, I'm having trouble parsing your issue with
Sorry, I'm having trouble parsing what you're trying to say here. |
sorry for my poor english. But, I think it is necessary to support initerface type when generate crds by controller-gen. |
I use kubebuilder to building api by using crds.
when I generate crd by controller-gen, with a command:
controller-gen crd
it occurs an error:
Unknown supported Kind Interface
The reason is, in my crd types, I use a interface to accept any object.
I want to generate a "object" item in crd. An example as following:
type RequestBody interface {
}
CRD define:
But the controller-gen donot support interface kind to generate crd.
A bug? Or any other way to make it.
Thanks.
The text was updated successfully, but these errors were encountered: