-
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
Switch to versioned ListOptions in server. #18655
Switch to versioned ListOptions in server. #18655
Conversation
Labelling this PR as size/L |
GCE e2e test build/test passed for commit 5c1c2837eff3a00158dc47a96bf844fb146d7794. |
@smarterclayton - the PR is almost ready. The remaining issue is this test failing: The issue is that ListOptions is not registered for the "company.com" API group, which I'm not sure how to solve properly (obviously we can register it in the test, but that doesn't solve the main problem here). |
Let me try the test out from your branch - I think we want to allow this in conversion (third party is a bit of a hack anyway). |
The assumption in resthandler (today) is that ListOptions exists in the group version, but third party doesn't provide a scope.Creater that is aware of ListOptions. master.go#1012 creates a thirdpartyresourcedata.NewObjectCreater - I think that method should create the appropriate delegate type (extensions/v1beta1#ListOptions), and conversion should work correctly at that point. |
hmm - I'm not sure I understood. I think that issue here is that we are passing "company.com#ListOptions" to "delegate" which api.Scheme cannot create an object for. So maybe the correct fix is to add another case for ListOptions: @smarterclayton WDYT? |
Yes I think so - roughly what I was trying to convey (translate 3rd party On Mon, Dec 14, 2015 at 1:05 PM, Wojciech Tyczynski <
|
OK - thanks (I guess I didn't understand what you were suggesting). |
5c1c283
to
7b94a68
Compare
GCE e2e test build/test passed for commit 7b94a6885fbc51ede9954b9e98d3bf2e24b57f9c. |
@smarterclayton - it's now ready to go PTAL |
LGTM thanks |
7b94a68
to
42d7934
Compare
Simple rebase - reapplying lgtm label |
42d7934
to
967366f
Compare
Trivial rebase - reapplying lgtm label |
GCE e2e test build/test passed for commit 967366f710e950fda0fe2deafff9eb6925cad929. |
967366f
to
5833682
Compare
One more trivial rebase |
GCE e2e test build/test passed for commit 5833682. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
@k8s-bot unit test this please |
1 similar comment
@k8s-bot unit test this please |
GCE e2e test build/test passed for commit 5833682. |
@k8s-bot unit test this please |
I'm still getting the following error:
I've seen it in other PRs too - I opened #18960 for it |
@k8s-bot unit test this please |
1 similar comment
@k8s-bot unit test this please |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit 5833682. |
@k8s-bot unit test this please |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
@k8s-bot unit test this please |
GCE e2e test build/test passed for commit 5833682. |
Tests just passed - merging manually to unblock further cleanup. |
Switch to versioned ListOptions in server.
Part 2 of #18645