-
Notifications
You must be signed in to change notification settings - Fork 40k
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] Allow passing subresources in Patch method #28820
[client-gen] Allow passing subresources in Patch method #28820
Conversation
91569ab
to
a115542
Compare
a115542
to
c2fb391
Compare
Something weird happens to the node e2e:
|
@k8s-bot node e2e test this, issue #IGNORE |
GCE e2e build/test passed for commit c2fb391. |
@@ -23,7 +23,7 @@ import ( | |||
|
|||
func (c *FakeNodes) PatchStatus(nodeName string, data []byte) (*api.Node, error) { | |||
obj, err := c.Fake.Invokes( | |||
core.NewPatchSubresourceAction(nodesResource, "status"), &api.Node{}) |
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.
How was this line generated before? I don't see any manual change that adds nodename and data to the calling of NewPatchSubresourceAction.
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.
Files end with "_expansion" are manually written.
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.
oh, ok. Because it was in a commit called "generated changes", I assumed they are auto generated. make sense to me know. The change looks good in respect to actual code change, I am still trying to understand the whole client set, but no need to block this PR for that.
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.
Sorry for the confusion :P
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit c2fb391. |
Automatic merge from submit-queue |
Expand the Patch() method from:
to
Continue on #27293. Fixes #26580.
cc @Random-Liu @lavalamp