-
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
Simplify Watch() signature in clients. #17863
Simplify Watch() signature in clients. #17863
Conversation
Labelling this PR as size/L |
GCE e2e test build/test passed for commit 7b3d9524ebdc5c4ac08f1aa31c918ec952cde890. |
7b3d952
to
405dd6d
Compare
GCE e2e test build/test passed for commit 405dd6d77fcfecdae8600b9e4234b202a1935ab6. |
@k8s-bot unit test this please |
405dd6d
to
27fb62f
Compare
27fb62f
to
d2dfc91
Compare
GCE e2e test build/test passed for commit 27fb62f0e7cf49725f2b8e9130b736962b01c1f6. |
GCE e2e test build/test passed for commit d2dfc91. |
cc @caesarxuchao - will affect your client generation :) |
@caesarxuchao - I'm happy to change your client generator once this is merge (in a separate PR). |
@krousey - can you please take a look (this is mostly mechanical PR) |
In the middle of looking now. On Tue, Dec 1, 2015 at 10:44 AM, Wojciech Tyczynski <
|
This seems like a drastic change in the public client interface that would break many users outside of our code base. Would you consider instead keeping the same Watch signature in the unversioned client and populating the options struct with the selector parameters before passing it to RESTClient's Watch? I agree that this is a cleaner signature and preferred, but is this something we should get right in the versioned clients we're going to generate and just paper it over here? |
@wojtek-t Thanks! Or we can update the templates of client generator before we release the tool, it's impractical to update the generator every time there is a change to the client code. |
I don't think it's a drastic change. We already wanted to cleanup our codebase as part of 1.2 and this in my opinion is a step in a good direction. @lavalamp @smarterclayton - I think we need your opinion on that. |
I think we can live with this - it's a bit more of mechanical change, and i originally pushed for this so I don't mind taking a small hit :) |
Continuous integration appears to have missed, closing and re-opening to trigger it |
I think it's good to think carefully about whether we're breaking clients for a good reason or not, but we do have the client in an "unversioned" directory for a reason. In this case I'm happy if @smarterclayton is happy. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test failed for commit d2dfc91. |
@k8s-bot e2e test this please |
GCE e2e test build/test passed for commit d2dfc91. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit d2dfc91. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
Depends on #17836 and #17823