Refactor service storage to remove registry wrapper#59510
Refactor service storage to remove registry wrapper#59510k8s-github-robot merged 2 commits intokubernetes:masterfrom
Conversation
|
@smarterclayton: Adding do-not-merge/release-note-label-needed because the release note process has not been followed. DetailsOne of the following labels is required "release-note", "release-note-action-required", or "release-note-none". Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@liggitt @kubernetes/sig-api-machinery-pr-reviews refactoring service storage so that Services have the correct API metadata |
|
The test |
2e677ed to
7d3415d
Compare
|
@smarterclayton: Adding do-not-merge/release-note-label-needed because the release note process has not been followed. DetailsOne of the following labels is required "release-note", "release-note-action-required", or "release-note-none". Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
7d3415d to
7f79a43
Compare
There was a problem hiding this comment.
don't inline this... that prevents the compiler from helping us notice if one of the methods we override changes signatures and our overridden version gets bypassed.
There was a problem hiding this comment.
There are two storage REST types. One is the raw underlying layer, one is the wrapper. Rather than use "storage" and "rest", and given that rest is our consistently used name now, used "REST" for the wrapper that is consumed and "GenericREST" for the inner wrapper.
There was a problem hiding this comment.
this was a duplicate name/namespace? what was this doing before?
There was a problem hiding this comment.
the first one in the list was getting chosen it looks like by name. someone added the second name, the test passed, went on their way. will dig in a bit more.
4f0ea8d to
242b836
Compare
There was a problem hiding this comment.
is this switch still needed?
242b836 to
d664fc6
Compare
3741f2b to
05796ff
Compare
05796ff to
78d674e
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: smarterclayton The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Any other comments? |
2de29ce to
b5a43b6
Compare
soltysh
left a comment
There was a problem hiding this comment.
The changes lgtm, but I'll let somebody from @kubernetes/sig-api-machinery-pr-reviews to push it forward
There was a problem hiding this comment.
type assertions for these would be nice
There was a problem hiding this comment.
what does it protect? please put on-top of the block it belongs to.
There was a problem hiding this comment.
Was leftover from a much earlier version of this test (this file was moved, but then refactored because it talked to a registry instead of to a rest storage). I'm going to remove it, no threaded operations appear to be performed anywhere in here.
|
Some nits. Otherwise lgtm. |
The registry abstraction is unnecessary and adds direct coupling to the core types. By using a wrapper, we carry through the default implementations of the non-mutating operations. The DeleteCollection method is explicitly patched out since it cannot be correctly implemented on the storage currently. As a result, TableConvertor is now exposed. A few other minor refactorings * Corrected the case of some variables * Used functions instead of methods for several helper methods * Removed the legacy Deleter - service was the only remaining consumer
b5a43b6 to
98cf7e6
Compare
|
Nits addressed, applying label |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
@smarterclayton: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
Automatic merge from submit-queue (batch tested with PRs 60106, 59510, 60263, 60063, 59088). If you want to cherry-pick this change to another branch, please follow the instructions here. |
This exposes the correct table exporter to the API endpoint, which is a prereq for server side GET to beta. Removing the use of the registry simplifies a few complex changes but results in test abstractions changing.
Part of #58536