-
Notifications
You must be signed in to change notification settings - Fork 39k
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
client-gen: use serializer instead of codec for versioned client #24395
Conversation
GCE e2e build/test passed for commit 7ce65c848a7a9ed4dc03eaeae0ed8e244f5a79d4. |
@@ -167,7 +176,7 @@ func New(c *$.RESTClient|raw$) *$.Group$Client { | |||
return &$.Group$Client{c} | |||
} | |||
` | |||
var setClientDefaultsTemplate = ` | |||
var legacySetClientDefaultsTemplate = ` |
There was a problem hiding this comment.
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?
GCE e2e build/test passed for commit 6ccd82a2e2e8f7badef90526441977f39c62c6c3. |
6ccd82a
to
32ce0e3
Compare
Comments addressed. PTAL. Thanks. |
@@ -17,6 +17,7 @@ limitations under the License. | |||
package v1beta1 | |||
|
|||
import ( | |||
fmt "fmt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this aliased?
There was a problem hiding this comment.
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.
LGTM |
Actually maybe you can squash & apply label yourself. Thanks. |
GCE e2e build/test passed for commit 32ce0e3092d4fec7e451640c8ffe7c6697a4c4a1. |
32ce0e3
to
4b5ef39
Compare
GCE e2e build/test passed for commit 4b5ef39. |
Automatic merge from submit-queue |
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