Skip to content
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-gen: use serializer instead of codec for versioned client #24395

Merged
merged 1 commit into from
Apr 20, 2016

Conversation

caesarxuchao
Copy link
Member

@caesarxuchao caesarxuchao commented Apr 18, 2016

For a versioned client, because the output of every client method is a versioned object, so it should use a serializer instead of a codec that does conversion.

@lavalamp @krousey

@caesarxuchao caesarxuchao self-assigned this Apr 18, 2016
@caesarxuchao caesarxuchao added the sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. label Apr 18, 2016
@caesarxuchao caesarxuchao changed the title client-gen: use serializer instead of codec for versioned client [WIP] client-gen: use serializer instead of codec for versioned client Apr 18, 2016
@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels Apr 18, 2016
@k8s-bot
Copy link

k8s-bot commented Apr 18, 2016

GCE e2e build/test passed for commit 7ce65c848a7a9ed4dc03eaeae0ed8e244f5a79d4.

@caesarxuchao caesarxuchao added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Apr 18, 2016
@caesarxuchao caesarxuchao changed the title [WIP] client-gen: use serializer instead of codec for versioned client client-gen: use serializer instead of codec for versioned client Apr 18, 2016
@@ -167,7 +176,7 @@ func New(c *$.RESTClient|raw$) *$.Group$Client {
return &$.Group$Client{c}
}
`
var setClientDefaultsTemplate = `
var legacySetClientDefaultsTemplate = `
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think legacy is descriptive here-- maybe setClientInternalVersionDefaultsTemplate?

@k8s-bot
Copy link

k8s-bot commented Apr 19, 2016

GCE e2e build/test passed for commit 6ccd82a2e2e8f7badef90526441977f39c62c6c3.

@caesarxuchao
Copy link
Member Author

Comments addressed. PTAL. Thanks.

@@ -17,6 +17,7 @@ limitations under the License.
package v1beta1

import (
fmt "fmt"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this aliased?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's my import code-- it does that because it's too dumb to tell if the package name matches the path name. Could be fixed with a small amount of effort.

@lavalamp
Copy link
Member

LGTM

@lavalamp lavalamp added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Apr 19, 2016
@lavalamp
Copy link
Member

Actually maybe you can squash & apply label yourself. Thanks.

@k8s-bot
Copy link

k8s-bot commented Apr 19, 2016

GCE e2e build/test passed for commit 32ce0e3092d4fec7e451640c8ffe7c6697a4c4a1.

@caesarxuchao caesarxuchao added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 19, 2016
@k8s-bot
Copy link

k8s-bot commented Apr 19, 2016

GCE e2e build/test passed for commit 4b5ef39.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 6402b04 into kubernetes:master Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants