David Eads
dd2af1c8a4
snip legacy scheme uses we don't need
2018-08-02 14:17:17 -04:00
Dr. Stefan Schimanski
d79cf25497
Update external k8s.io/metrics imports
2018-07-02 10:44:18 +02:00
David Eads
c85e69aeb9
remove unnecessary factory delegation for RESTClientGetter method
2018-05-28 15:12:41 +02:00
David Eads
c5445d3c56
simplify api registration
2018-05-08 18:33:50 -04:00
David Eads
facd04be43
use IOStreams for cli commands
2018-05-08 09:02:34 -04:00
juanvallejo
8d35f94d51
use temp kubeconfig for fake factory
2018-03-09 15:53:19 -05:00
David Eads
6047ead2e5
simplify kubectl testing factory
2018-02-23 08:02:53 -05:00
David Eads
f084311326
remove metrics client factory method
2018-02-22 07:45:04 -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
Frederic Branczyk
b1448adb59
kubectl: Use metrics-server for kubectl top commands
2018-01-22 21:45:06 +01:00
zhengjiajin
fe0f461cea
remove dependency from top command
2017-10-31 16:15:32 +08:00
ymqytw
4487cc5e15
switch some commands to use its own scheme
2017-10-27 18:31:42 -07:00
Solly Ross
eac2049fc9
[client-go] avoid Registry in fake REST client
...
Previously, the fake RESTClient in client-go required a Registry. It
used the Registry to fetch the GroupVersion for the fake client.
However, the way it did so was dubious in some cases (it hard-coded the
default API group in places), and not strictly necssary.
This updates the fake client to just recieve the GroupVersion and
internal group name directly, instead of requiring a Registry, so that
it can be consumed in unit tests where a Registry isn't necessarily
readily available (e.g. elsewhere in client-go).
2017-10-19 11:01:44 -04:00
Dr. Stefan Schimanski
7773a30f67
pkg/api/legacyscheme: fixup imports
2017-10-18 17:23:55 +02:00
juanvallejo
c969079f49
add tests
2017-08-17 18:08:26 -04:00
juanvallejo
5b8b1eb2eb
allow default option values - kube top node|pod
2017-08-17 11:24:29 -04:00
Chao Xu
36e2d0b4cb
hack/update-bazal.sh
...
hack/update-godep-license
2017-05-15 13:51:39 -07:00
Chao Xu
d9c2fbbf23
rely on staging/metrics instead of on
...
vendor/k8s.io/heapster/metrics/apis/metrics/v1alpha1
fix some related imports
2017-05-15 13:50:49 -07:00
deads2k
502bfdf944
client/restclient/fake move to client-go
2017-01-25 08:29:48 -05:00
Clayton Coleman
35a6bfbcee
generated: refactor
2016-11-23 22:30:47 -06:00
Chao Xu
fd2fdfba89
move client/unversioned/fake to client/restclient/fake
2016-10-29 14:22:02 -07:00
Angus Salkeld
d58554a647
Move the common test functions from cmd_test.go to cmd/testing/fake.go
...
This is so that we can use NewAPIFactory() from cmd/set/*test.go
Up until now we would get a import loop error.
This commit also adds a basic unit test case for cmd/set/set_image.go
2016-10-19 08:53:26 +10:00
deads2k
519c13745f
convert rest of kubectl to generated clients
2016-09-12 08:22:34 -04:00
mksalawa
ddf66e0dae
Update Godeps.
2016-08-19 17:28:25 +02:00
mksalawa
2833119a15
Use List objects for metrics in kubectl top and HPA
2016-08-19 17:26:50 +02:00
mksalawa
566af82be3
Add percentage of used resources to node metrics.
2016-08-19 13:35:39 +02:00
mksalawa
5df9fe684d
Implement kubectl top command with subcommands.
2016-08-11 17:25:18 +02:00