-
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
Remove old, core/v1 specific constructs from RESTClient #48991
Remove old, core/v1 specific constructs from RESTClient #48991
Conversation
e49e8bd
to
a63b9a9
Compare
@kubernetes/sig-api-machinery-pr-reviews |
8377f99
to
5bb014a
Compare
This makes resource.Helper a versioned interface (no field mapping) which it already was for non core API resources. |
All callers must use VersionedParameters, which no longer has special behavior for Kube resources.
5bb014a
to
112e0fa
Compare
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.
Nice - just one very minor comment.
@@ -58,6 +58,7 @@ func (m *Helper) Get(namespace, name string, export bool) (runtime.Object, error | |||
Resource(m.Resource). | |||
Name(name) | |||
if export { | |||
// TODO: I should be part of GetOptions |
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.
s/I/It/
/lgtm |
/approve
…On Mon, Jul 17, 2017 at 2:50 AM, Kubernetes Submit Queue < ***@***.***> wrote:
[APPROVALNOTIFIER] This PR is *NOT APPROVED*
This pull-request has been approved by: *smarterclayton
<#48991#>*, *wojtek-t
<#48991 (comment)>*
*No associated issue*. Update pull-request body to add a reference to an
issue, or get approval with /approve no-issue
The full list of commands accepted by this bot can be found here
<https://github.com/kubernetes/test-infra/blob/master/commands.md>.
Needs approval from an approver in each of these OWNERS Files:
- pkg/kubectl/OWNERS
<https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/OWNERS>
[smarterclayton,wojtek-t]
- staging/OWNERS
<https://github.com/kubernetes/kubernetes/blob/master/staging/OWNERS>
[smarterclayton,wojtek-t]
- test/OWNERS
<https://github.com/kubernetes/kubernetes/blob/master/test/OWNERS>
[smarterclayton,wojtek-t]
You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48991 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG_p7sT9bbiWEp7doneeKD2TkdZqNfkks5sOwQogaJpZM4OZMmF>
.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: smarterclayton, wojtek-t No associated issue. Update pull-request body to add a reference to an issue, or get approval with The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue |
Now that metav1 is abstracted from the APIs, RESTClient should also be agnostic to the core API.
LabelSelectorParam
andFieldSelectorParam
- useVersionedParams
withListOptions
UintParam
VersionedParams
- ParameterCodec now handles thattimeout
) which is no longer set by most clients