k3s/test/integration/apiserver
Kubernetes Submit Queue 98bab89fab
Merge pull request #63927 from deads2k/cli-60-factory-prune
Automatic merge from submit-queue (batch tested with PRs 63871, 63927, 63966, 63957, 63844). 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>.

 start splitting polymorphic functions out of the factory

the polymorphic behavior in `kubectl` has been gathered in the factory, but with the new kubeconfigflags and interfaces, it can actually be re-written as a set of helper calls.

These functions are special.  They are indications of areas of flexibility that we eventually need to build generically.  In addition, unit tests make heavy use of injection. For these reasons we aren't inlining them.  Instead we'll extra to a polymorphic package and have them as assignable functions for mocking.

Individual commands should support injection for cleaner mocking and we'll be able to use the package to hunt internal dependencies.

@kubernetes/sig-cli-maintainers 
@soltysh @juanvallejo 

```release-note
NONE
```
2018-05-17 13:40:19 -07:00
..
BUILD move ConfigFlags to pkg/kubectl/genericclioptions 2018-05-16 11:31:48 -04:00
apiserver_test.go Requires single name for list and watch 2018-05-15 14:19:21 +02:00
main_test.go
patch_test.go collapse patch conflict retry onto GuaranteedUpdate 2018-04-25 21:55:13 -04:00
print_test.go update factory interface to overlap with lower RESTClientGetter 2018-05-17 08:27:53 -04:00