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

Simplify Watch() signature in clients. #17863

Merged

Conversation

wojtek-t
Copy link
Member

Depends on #17836 and #17823

@wojtek-t wojtek-t self-assigned this Nov 27, 2015
@k8s-github-robot
Copy link

Labelling this PR as size/L

@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 27, 2015
@k8s-bot
Copy link

k8s-bot commented Nov 27, 2015

GCE e2e test build/test passed for commit 7b3d9524ebdc5c4ac08f1aa31c918ec952cde890.

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 1, 2015
@wojtek-t wojtek-t force-pushed the only_list_options_in_watch branch from 7b3d952 to 405dd6d Compare December 1, 2015 11:52
@wojtek-t wojtek-t removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 1, 2015
@wojtek-t wojtek-t changed the title [WIP][Do NOT merge] Simplify Watch() signature in clients. Simplify Watch() signature in clients. Dec 1, 2015
@wojtek-t wojtek-t assigned lavalamp and unassigned wojtek-t Dec 1, 2015
@k8s-bot
Copy link

k8s-bot commented Dec 1, 2015

GCE e2e test build/test passed for commit 405dd6d77fcfecdae8600b9e4234b202a1935ab6.

@wojtek-t
Copy link
Member Author

wojtek-t commented Dec 1, 2015

@k8s-bot unit test this please

@wojtek-t wojtek-t force-pushed the only_list_options_in_watch branch from 405dd6d to 27fb62f Compare December 1, 2015 13:11
@wojtek-t wojtek-t force-pushed the only_list_options_in_watch branch from 27fb62f to d2dfc91 Compare December 1, 2015 13:19
@k8s-bot
Copy link

k8s-bot commented Dec 1, 2015

GCE e2e test build/test passed for commit 27fb62f0e7cf49725f2b8e9130b736962b01c1f6.

@k8s-bot
Copy link

k8s-bot commented Dec 1, 2015

GCE e2e test build/test passed for commit d2dfc91.

@lavalamp lavalamp assigned krousey and unassigned lavalamp Dec 1, 2015
@lavalamp
Copy link
Member

lavalamp commented Dec 1, 2015

cc @caesarxuchao - will affect your client generation :)

@wojtek-t
Copy link
Member Author

wojtek-t commented Dec 1, 2015

@caesarxuchao - I'm happy to change your client generator once this is merge (in a separate PR).

@wojtek-t
Copy link
Member Author

wojtek-t commented Dec 1, 2015

@krousey - can you please take a look (this is mostly mechanical PR)

@krousey
Copy link
Contributor

krousey commented Dec 1, 2015

In the middle of looking now.

On Tue, Dec 1, 2015 at 10:44 AM, Wojciech Tyczynski <
notifications@github.com> wrote:

@krousey https://github.com/krousey - can you please take a look (this
is mostly mechanical PR)


Reply to this email directly or view it on GitHub
#17863 (comment)
.

@krousey
Copy link
Contributor

krousey commented Dec 1, 2015

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?

cc @smarterclayton @liggitt

@caesarxuchao
Copy link
Member

@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.

@wojtek-t
Copy link
Member Author

wojtek-t commented Dec 1, 2015

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?

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.
Also, I don't think that it will break that many clients and fixing it is relatively simple (also note that we are not changing the official k8s API here).

@lavalamp @smarterclayton - I think we need your opinion on that.

@smarterclayton
Copy link
Contributor

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 :)

@krousey krousey added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 1, 2015
@k8s-github-robot
Copy link

Continuous integration appears to have missed, closing and re-opening to trigger it

@lavalamp
Copy link
Member

lavalamp commented Dec 1, 2015

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-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Dec 2, 2015

GCE e2e build/test failed for commit d2dfc91.

@wojtek-t
Copy link
Member Author

wojtek-t commented Dec 2, 2015

@k8s-bot e2e test this please

@k8s-bot
Copy link

k8s-bot commented Dec 2, 2015

GCE e2e test build/test passed for commit d2dfc91.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Dec 2, 2015

GCE e2e test build/test passed for commit d2dfc91.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Dec 2, 2015
@k8s-github-robot k8s-github-robot merged commit 8a8639d into kubernetes:master Dec 2, 2015
@wojtek-t wojtek-t deleted the only_list_options_in_watch branch December 7, 2015 15:20
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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants