Sean Sullivan
6c96a059dd
Move pkg/kubectl/cmd/util and subdirs to staging
2019-07-29 13:08:41 -07:00
Sean Sullivan
7a64a66d61
Move pkg/kubectl/cmd/util/openapi to staging
2019-07-27 16:18:37 -07:00
Sean Sullivan
67140f13fe
Updated dependencies: BUILD/modules.txt
2019-07-18 15:43:26 -07:00
Sean Sullivan
140c62cd4c
Update all imports to scheme in staging
2019-07-18 15:32:27 -07:00
Tara Gu
75b18e20d5
Don't print non-error (blank lines in this case) to stdout, and don't print blank lines for empty resources
2019-07-13 21:23:28 -04:00
Sean Sullivan
9cef1fb27b
Update dependencies BUILD/go.mod/go.sum
2019-06-28 11:56:18 -07:00
Sean Sullivan
4a95e689c3
Updated import statements to reflect move to staging
2019-06-28 09:53:20 -07:00
Davanum Srinivas
7b8c9acc09
remove unused code
...
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
WanLinghao
d0138ca3fe
This commit does two things in pkg package:
...
1. Remove unused ptr functions.
2. Replace ptr functions with k8s.io/utils/pointer
2019-04-09 10:56:35 +08:00
Ilya Dmitrichenko
6d7a9048b6
Move printers & resources packages
...
These packages deserve to live at the top level of `k8s.io/cli-runtime`,
as they are potentially of wider use than genericclioptions.
2019-03-07 23:00:24 +00:00
Chao Xu
1f2e2e61cf
generated
2019-02-12 15:04:57 -08:00
Chao Xu
3f21ca029a
changing imports
2019-02-12 10:06:04 -08:00
Dr. Stefan Schimanski
618050e35d
client-go: extend discovery intf with ServerGroupsAndResources
2019-02-12 14:28:19 +01:00
Jordan Liggitt
fd9e9b01b1
Remove uses of extensions/v1beta1 clients
2018-12-19 11:18:53 -05:00
Yang Li
141d33a2a5
Fix some golint errors for packages in pkg/kubectl/cmd
...
Co-authored-by: Arijit Basu <sayanarijit@gmail.com >
2018-11-22 22:09:08 +08:00
Maciej Szulik
1d9617d8e1
Generated changes
2018-10-06 18:44:05 +02:00
Maciej Szulik
55d5df8a36
React to moves
2018-10-06 18:44:05 +02:00
Sean Sullivan
fa727c809e
kubectl fake test factory: replace legacyscheme with kubectl scheme
2018-10-03 15:38:28 -07:00
Maciej Szulik
5b55e1f8ed
Create cli-runtime staging repository
2018-08-21 17:08:30 +02:00
David Eads
8b20ee1d4e
remove internal factory client
2018-08-03 07:47:05 -04:00
David Eads
bc10b25465
make builder tolerant of restmapper failures when it doesn't need the answer
2018-06-29 11:07:36 -04:00
yue9944882
c5c88006ef
show kind for multiple resource types
...
review: simplify and trim codes
refactor ToPrinter and pass show kind flag
remove tests together with removed function
2018-06-28 11:22:09 +08:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
David Eads
c85e69aeb9
remove unnecessary factory delegation for RESTClientGetter method
2018-05-28 15:12:41 +02:00
David Eads
6d117383fc
fix describer tests
2018-05-24 10:50:49 -04:00
juanvallejo
cf29a30258
move Describer from factory
2018-05-24 09:43:28 -04:00
David Eads
eabfcfaa2b
start splitting polymorphic functions out of the factory
2018-05-17 08:55:31 -04:00
David Eads
0db40da909
update factory interface to overlap with lower RESTClientGetter
2018-05-17 08:27:53 -04:00
juanvallejo
876629f690
move ConfigFlags to pkg/kubectl/genericclioptions
2018-05-16 11:31:48 -04:00
David Eads
4b36c15872
remove single use, non-polymorphic helpers from factory
2018-05-15 15:05:49 -04:00
juanvallejo
57f308ae60
restore old cached client behavior
2018-05-15 10:37:53 -04:00
juanvallejo
4059355743
move cached_discovery to client-go/discovery
2018-05-15 10:20:56 -04:00
David Eads
fd044d152e
fix dynamic client name
2018-05-11 13:12:09 -04:00
David Eads
16d6a6c52f
move resource builder to generic options
2018-05-10 14:15:12 -04:00
David Eads
ad87219b2c
category expansion can only come from the server
2018-05-09 15:05:58 -04:00
David Eads
37f6cb7230
move category expansion types to restmapper package
2018-05-09 15:03:09 -04:00
David Eads
3cb7d25959
push ToRESTMapper down a layer
2018-05-09 11:18:26 -04:00
David Eads
c5445d3c56
simplify api registration
2018-05-08 18:33:50 -04:00
David Eads
dd97a7bc59
move client based restmappers to client-go
2018-05-08 08:11:56 -04:00
juanvallejo
3ca222b2d9
wire config flags through factory
2018-05-04 17:02:20 -04:00
Kubernetes Submit Queue
238fda9e52
Merge pull request #63318 from deads2k/cli-40-mapperfunc
...
Automatic merge from submit-queue (batch tested with PRs 63315, 63383, 63318, 63439). 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>.
drive resourcebuilder from kubeconfig, allow scheme specification
This updates the resource builder to work based on a kubeconfig to allow future chaining of flags. It also allow specification of the scheme you want for your actual decoding.
@kubernetes/sig-cli-maintainers
```release-note
NONE
```
2018-05-04 12:41:12 -07:00
David Eads
b8aa7baa7d
simplify resource builder usage
2018-05-04 13:02:49 -04:00
David Eads
94e3d94d67
update tests to be specific about the versions they are testing instead of floating
2018-05-01 13:18:41 -04:00
David Eads
1cb797e355
acknowledge that creation of a restmapper can fail and that we cannot have a default
2018-05-01 07:52:51 -04:00
David Eads
ef0d1ab819
remove incorrect static restmapper
2018-05-01 07:51:17 -04:00
Kubernetes Submit Queue
7884cc5453
Merge pull request #63250 from deads2k/cli-39-typer
...
Automatic merge from submit-queue (batch tested with PRs 63251, 59166, 63250, 63180, 63169). 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>.
divide statically known typer from dynamically derived restmapper
The CLI factory conflated a statically known typer and a dynamically derived restmapper. This produced confusion and unnecessary indirection. This pull separates dynamically known from statically known.
A future pull will continue the separation of in the builder to indicate the points of variability for clients, which should logically be limited to a negotiated serializer for decoding and an object typer.
@kubernetes/sig-cli-maintainers
/assign @soltysh
/assign @juanvallejo
```release-note
NONE
```
2018-04-27 10:45:13 -07:00
David Eads
5432ef5c45
divide statically known typer from dynamically derive restmapper
2018-04-27 11:15:05 -04:00
David Eads
6fbcbc994f
remove unnecessarily flexibiliy to simplify the resource builder
2018-04-27 09:27:51 -04:00
David Eads
e2fc5cf259
remove versioning interface
2018-04-27 07:56:42 -04:00
David Eads
b8177bb9af
tighten .Info for kubectl to avoid unpredictable conversion
2018-04-26 12:47:25 -04:00