k3s/pkg/kubectl/resource
Kubernetes Submit Queue a29b4607df
Merge pull request #63258 from deads2k/cli-42-simplify-buidler
Automatic merge from submit-queue (batch tested with PRs 63258, 63398, 63403). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

stop using Info.Mappings when they may not be present

On a resource builder, you cannot logically have a RESTMapping or a Client if you're running a local action.  Reliance on the `info.Client` and `info.Mapping` is a bug we need to fix.  This updates the docs and eliminates unnecessary reliance.  Other hits I found didn't have `--local` options, so we're safe or had them and and were already broken.  I think we'll be able to help them after making our creation flow obvious.

@kubernetes/sig-cli-maintainers 

```release-note
NONE
```
2018-05-03 12:48:10 -07:00
..
BUILD remove incorrect static restmapper 2018-05-01 07:51:17 -04:00
builder.go don't reuse resource builder in describe 2018-05-02 16:53:26 -04:00
builder_test.go update restmapping to indicate fully qualified resource 2018-05-01 16:34:49 -04:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
helper.go update restmapping to indicate fully qualified resource 2018-05-01 16:34:49 -04:00
helper_test.go remove confusing flexibility for metadata interpretation 2018-04-23 13:31:55 -04:00
interfaces.go acknowledge that creation of a restmapper can fail and that we cannot have a default 2018-05-01 07:52:51 -04:00
mapper.go acknowledge that creation of a restmapper can fail and that we cannot have a default 2018-05-01 07:52:51 -04:00
result.go update restmapping to indicate fully qualified resource 2018-05-01 16:34:49 -04:00
selector.go remove unnecessarily flexibiliy to simplify the resource builder 2018-04-27 09:27:51 -04:00
visitor.go Merge pull request #63258 from deads2k/cli-42-simplify-buidler 2018-05-03 12:48:10 -07:00
visitor_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00