-
Notifications
You must be signed in to change notification settings - Fork 39.3k
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
client/request warns about Kube objects, should be abstracted #11261
Comments
I think that will make sense when we offer versioned clients, which I hope to get together soon. |
As an example of where we already tolerate this one way: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/client/pods.go#L77 I don't particularly like that.... but... On Tue, Jul 14, 2015 at 5:22 PM, Daniel Smith notifications@github.com
Clayton Coleman | Lead Engineer, OpenShift |
How will versioned clients work when the server doesn't support your On Tue, Jul 14, 2015 at 5:39 PM, Clayton Coleman ccoleman@redhat.com
Clayton Coleman | Lead Engineer, OpenShift |
Well, I was thinking about just requiring the server to support the version you ask for. But now that I think about it, I guess we could allow the client library to up/down convert objects into the version corresponding to the client version. (see #4874 (comment)) |
It may not be a huge issue, but I could imagine supporting both v1 and v2 On Tue, Jul 14, 2015 at 6:20 PM, Daniel Smith notifications@github.com
Clayton Coleman | Lead Engineer, OpenShift |
Yeah, I think that's doable. But servers will already have to support v1 On Tue, Jul 14, 2015 at 3:38 PM, Clayton Coleman notifications@github.com
|
I think we finally fixed this. |
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/client/request.go#L277 specifically refers to Kube objects, but client is generic to any runtime.Object. We should abstract this code into scheme, and pull it out of pkg/client/request.go.
The text was updated successfully, but these errors were encountered: