-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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 List() signature in clients. #18075
Conversation
Labelling this PR as size/XXL |
GCE e2e build/test failed for commit 1de0cd88f55c34cf7aebd4b078ff2589ec131113. |
aaa7b29
to
f442deb
Compare
GCE e2e test build/test passed for commit aaa7b290868b86ba7b01b1737f5868dcba18315c. |
@k8s-bot unit test this please |
GCE e2e build/test failed for commit f442deba6b1767180e51a9d6148dff6b99f90c14. |
@k8s-bot e2e test this please |
GCE e2e test build/test passed for commit f442deba6b1767180e51a9d6148dff6b99f90c14. |
@caesarxuchao Can you review this one? Thanks :) |
@caesarxuchao - it would be awesome if you could do it. Thanks! |
Sure, I'll review it later today. |
@@ -678,7 +680,9 @@ func AddDeploymentKeyToReplicationController(oldRc *api.ReplicationController, c | |||
// Clean up any orphaned pods that don't have the new label, this can happen if the rc manager | |||
// doesn't see the update to its pod template and creates a new pod with the old labels after | |||
// we've finished re-adopting existing pods to the rc. | |||
podList, err = client.Pods(namespace).List(labels.SelectorFromSet(selectorCopy), fields.Everything(), unversioned.ListOptions{}) | |||
selector = labels.SelectorFromSet(selectorCopy) |
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.
Out of curiosity, did you automate this kind of changes? If so, how did you do 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.
No - I did it manually.
[It was easy to fix it with sed when both selectors was Everything() - all other changes I did manually].
LGTM. Thanks. It needs rebase. |
f442deb
to
6c8aa2d
Compare
Trivial rebase - reapplying lgtm |
GCE e2e build/test failed for commit 6c8aa2d3b61d7c24192d7aa7afc549d354cc0dd2. |
6c8aa2d
to
45e6d33
Compare
One more trivial rebase |
@k8s-bot unit test this |
unit-test failure is unrelated to this PR: @k8s-bot unit test this please |
GCE e2e test build/test passed for commit 45e6d331f71f492b868fdbe7fb3113407f923223. |
45e6d33
to
6dcb689
Compare
One more trivial rebase |
GCE e2e test build/test passed for commit 6dcb689. |
Simplify List() signature in clients.
This is a sibling PR to #17863
@krousey @lavalamp