-
Notifications
You must be signed in to change notification settings - Fork 345
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
Add support for CustomResourceDefinitions (and phase out TPRs) #25
Comments
Yup, this is known. We just wanted to get it out and I'll update soon-ish. |
I will also need to update the deps on this one. |
Thoughts: CRDs aren't a part of client-go yet, you need to initialize a separate clientset for everything under apiextensions. It seems like it will eventually be rolled in, see: kubernetes/client-go#247 We can refactor pretty heavily to ensure the clientset and the apiextensions clientset are both passed around to the various discovery functions, or we can wait for the above issue to be addressed (and maybe help with it.) |
We should wait until CRDs are in client-go. Blarg, I want to avoid the vendor nightmare that we pulled before. Perhaps we should poke @ncdc on this issue. |
@kensimon @timothysc I'm not sure what you mean about CRDs not being in client-go? Are you talking specifically about having a typed client to be able to register CRDs? If so, then you're correct, that's part of apiextensions. But we've stated that we'll ship CRDs as yaml and require admins to install them via kubectl. Or are you talking about something slightly different? |
@ncdc this is about scanning and reporting what is there for diagnostics and reporting. |
I see. I would vendor in what you need from apiextensions for now, or if that's too painful, just build your own client. |
This is pending an updated to client... on hold blocked atm. |
This is now unblocked, I'll have a fix soonish. |
This may be a push b/c client-go doesn't actually have the straight up interface that I'm looking for, but exists in the main repository. client.Apiextensions().CustomResourceDefinitions().List(options) which is essentially under the ApiextensionsV1beta1 group is nowhere to be found in the client, but I'm sure could be accessed through discovery. |
It requires a separate client util+wrapper k8s.io/apiextensions-apiserver which is outside of client-go. |
Thanks for fixing this @timothysc! |
As you all know, CRDs are the successor of TPRs.
TPRs will be removed in v1.8, make sure sonobuoy can handle that gracefully ;)
The text was updated successfully, but these errors were encountered: