Maciej Szulik
383872615d
Remove kubectl reapers
2018-05-25 22:18:05 +02:00
Kubernetes Submit Queue
ac58ee4ca5
Merge pull request #64233 from juanvallejo/jvallejo/move-describer-out-of-factory
...
Automatic merge from submit-queue (batch tested with PRs 63319, 64248, 64250, 63890, 64233). 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>.
move Describer from factory
**Release note**:
```release-note
NONE
```
Moves `Describer` out of the object_mapping_factory
cc @soltysh @deads2k
2018-05-24 19:46:21 -07:00
juanvallejo
cf29a30258
move Describer from factory
2018-05-24 09:43:28 -04:00
Guoliang Wang
cf86cb77eb
Move unrelated methods from the factory to helper
2018-05-24 11:42:26 +08:00
Kubernetes Submit Queue
b143093a62
Merge pull request #64111 from juanvallejo/jvallejo/move-more-helpers
...
Automatic merge from submit-queue. 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>.
Move CanBeExposed helper from factory_client_access
**Release note**:
```release-note
NONE
```
Moves additional helpers from the "factory_client_access". Continues work from https://github.com/kubernetes/kubernetes/pull/63984 and https://github.com/kubernetes/kubernetes/pull/63884
Moves CanBeExposed from factory_client_access.
cc @soltysh
2018-05-23 13:50:02 -07:00
Kubernetes Submit Queue
6e1727a865
Merge pull request #64114 from juanvallejo/jvallejo/remove-command-method-from-factory
...
Automatic merge from submit-queue (batch tested with PRs 59851, 64114, 63912, 64156, 64191). 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>.
move f.Command out of the factory
**Release note**:
```release-note
NONE
```
Moves the "f.Command" method out of factory_client_access
cc @soltysh
2018-05-23 09:06:11 -07:00
juanvallejo
b6db623799
move rollbacker from the factory
2018-05-23 10:44:01 -04:00
juanvallejo
fb0794976a
move Pauser and Resumer from the factory
2018-05-23 10:27:20 -04:00
juanvallejo
5f5e3a59c0
move more CanBeExposed from factory_client_access
2018-05-23 10:27:20 -04:00
juanvallejo
0d3e85608f
move f.Command out of the factory
2018-05-22 13:31:01 -04:00
David Eads
043f66b86e
remove portsforobject from factory
2018-05-22 09:09:55 -04:00
Kubernetes Submit Queue
a0036fcae1
Merge pull request #64113 from juanvallejo/jvallejo/remove-uneeded-factory-methods
...
Automatic merge from submit-queue (batch tested with PRs 63151, 63795, 63553, 64068, 64113). 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>.
remove LabelsForObject and ResolveImage from factory
**Release note**:
```release-note
NONE
```
Removes the `ResolveImage` and `LabelsForObject` methods from factory_client_access, which are not needed.
cc @soltysh
2018-05-21 21:41:24 -07:00
David Eads
087140aee9
move updatepodspecforobject out of factory
2018-05-21 17:56:33 -04:00
juanvallejo
8fc0bfd287
remove LabelsForObject and ResolveImage from factory
2018-05-21 16:30:46 -04:00
juanvallejo
f3a46cf626
move additional methods from factory
2018-05-18 11:49:02 -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
David Eads
4b36c15872
remove single use, non-polymorphic helpers from factory
2018-05-15 15:05:49 -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
080d6a4b0d
wrap restclientgetter with match version option
2018-05-10 09:43:22 -04:00
David Eads
1f5357034b
construct resource.Builder from kubeconfig flags
2018-05-10 09:42:15 -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
juanvallejo
3ca222b2d9
wire config flags through factory
2018-05-04 17:02:20 -04:00
David Eads
b8aa7baa7d
simplify resource builder usage
2018-05-04 13:02:49 -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
5432ef5c45
divide statically known typer from dynamically derive restmapper
2018-04-27 11:15:05 -04:00
David Eads
4f90f9aa8b
remove uneeded discovery flexibility
2018-04-20 07:21:51 -04:00
p0lyn0mial
3b00b4a86f
removes job scaler
2018-04-04 08:23:21 -04:00
p0lyn0mial
1f1d24005a
removes custom scalers from kubectl
2018-03-26 19:33:42 +02:00
Chao Wang
71a1970bf6
--show-all is inert in v1.11
2018-03-21 09:13:21 +08:00
Kubernetes Submit Queue
4f083dee54
Merge pull request #60208 from soltysh/remove_factory_metricsclient_method
...
Automatic merge from submit-queue. 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>.
Remove factory metricsclient method
**What this PR does / why we need it**:
Alternative approach to https://github.com/kubernetes/kubernetes/pull/60142 which fixed the `NewCmdTopPod` return arguments
/assign @deads2k
**Release note**:
```release-note
None
```
2018-02-22 22:45:58 -08:00
Maciej Szulik
999273fbd7
Remove ClientSetForVersion & ClientConfigForVersion from factory
2018-02-22 15:50:27 +01:00
David Eads
f084311326
remove metrics client factory method
2018-02-22 07:45:04 -05:00
Kubernetes Submit Queue
7d64d30177
Merge pull request #60094 from juanvallejo/jvallejo/remove-printobjectspecificmessage
...
Automatic merge from submit-queue. 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>.
remove f.PrintObjectSpecificMessage
**Release note**:
```release-note
NONE
```
Mailing list discussion: https://groups.google.com/forum/#!topic/kubernetes-sig-cli/gZWg8Ulo3Ao
Removes the `PrintObjectSpecificMessage` helper in an effort to reduce printing stack complexity, and avoid special-casing resources.
2018-02-22 00:35:21 -08:00
juanvallejo
e3d81517ae
remove f.PrintObjectSpecificMessage
2018-02-21 21:06:49 -05:00
David Eads
d8a5420b7c
remove unneeded factory codec methods
2018-02-21 15:20:20 -05:00
David Eads
be04e7c1b1
collapse printing paths
2018-02-21 08:15:22 -05:00
David Eads
dd6405681f
cleanup printers some more
2018-02-20 12:59:40 -05:00
Di Xu
48388fec7e
fix all the typos across the project
2018-02-11 11:04:14 +08:00
juanvallejo
beb5ea641a
remove mapper dependency - PrintSuccess
2018-02-07 10:10:45 -05:00
Frederic Branczyk
b1448adb59
kubectl: Use metrics-server for kubectl top commands
2018-01-22 21:45:06 +01:00
Kubernetes Submit Queue
f008f147f8
Merge pull request #52321 from Mashimiao/factory-tfix
...
Automatic merge from submit-queue. 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>.
small tfix in cmd factory comment
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com >
**What this PR does / why we need it**:
tfix in cmd factory comment
**Release note**:
```release-note
NONE
```
2018-01-15 11:34:48 -08:00
juanvallejo
f5ab356043
pass printOpts by pointer
2017-11-20 14:49:23 -05:00
juanvallejo
d3773b4b06
consolidate printer OutputOpts w PrintOpts
...
This patch removes the use of printers.OutputOptions in favor of only
having a single struct for setting / passing printer options set by user
flags.
2017-11-20 14:49:23 -05:00
Clayton Coleman
04ab96d2bd
Unify Object and UnstructuredObject
...
The unified RESTMapper and Typer follow the new rules, but on error will
fallback to the legacy path (while still supporting Unstructured
objects). This allows callers to handle the appropriate distinction
themselves if necessary.
Add a LocalParam() method to the resource.Builder that DRYs up a large
chunk of complicated code in set commands.
2017-11-19 19:16:50 -05:00
Clayton Coleman
e298aa39c3
Add a lazy discovery interface for Unstructured
...
Delays the error until the first call and then preserves it for others.
More closely matches the intent of the Object() calls. Loaders are now
lazy and don't need to return errors directly.
Sets the stage for collapsing unstructured and structured builders
together.
2017-11-19 19:16:50 -05:00
Clayton Coleman
5038eb2a3f
Remove use of VersionedObject and simplify builder in generic methods
...
Reduce all uses of Unstructured to the simpler form, and avoid asking
for mapper or typer unless it is required. Use Typed() for places that
previously used VersionedObject, and remove paths for versioned objects
from code that is now using unstructured.
2017-11-19 19:16:49 -05:00