Prefer GroupVersionResource, fallback to GVK#60932
Prefer GroupVersionResource, fallback to GVK#60932k8s-github-robot merged 1 commit intokubernetes:masterfrom
Conversation
pkg/kubectl/resource/builder.go
Outdated
There was a problem hiding this comment.
if this errors out, you want to return return b.mapper.RESTMapping(gvk.GroupKind(), gvk.Version), right?
There was a problem hiding this comment.
Thanks, updated this
890108f to
dbffd9c
Compare
|
/ok-to-test |
soltysh
left a comment
There was a problem hiding this comment.
One small nit, otherwise lgtm.
pkg/kubectl/resource/builder.go
Outdated
There was a problem hiding this comment.
Given the current changes the godoc needs update as well.
There was a problem hiding this comment.
Thanks for catching that. Updated godoc to reflect new changes
2acf5f6 to
67d535e
Compare
|
/assign @smarterclayton |
|
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process @juanvallejo @smarterclayton @soltysh Pull Request Labels
|
67d535e to
81504a4
Compare
|
/retest |
hack/make-rules/test-cmd-util.sh
Outdated
There was a problem hiding this comment.
This message is technically incorrect - we couldn't find a resource or a kind called unknown resource type, and we are very careful in the CLI to describe this argument as a resource argument. I think you need to fix the message in the case where you fall all the way through to be consistent with the previous release.
There was a problem hiding this comment.
Thanks, added an error message when this happens to maintain consistency with previous behavior
81504a4 to
35d4fde
Compare
35d4fde to
177dcb9
Compare
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, juanvallejo, soltysh 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 |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
Release note:
Addresses #59353 (comment)
cc @smarterclayton @deads2k @soltysh