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
Maciej Szulik
4d7d153a12
Remove unnecessary return parameter from NewCmdTopPod
2018-02-22 14:33:14 +01: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
linweibin
fa8afc1d39
Remove unused code in UT files in pkg/
2018-01-15 16:02:35 +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
supereagle
adc0eef43e
remove duplicated import and wrong alias name of api package
2017-07-25 10:04:25 +08:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f2d3220a11
run root-rewrite-import-client-go-api-types
2017-06-22 11:30:59 -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
Dr. Stefan Schimanski
bc6fdd925d
pkg/api/resource: move to apimachinery
2017-01-29 21:41:44 +01:00
deads2k
502bfdf944
client/restclient/fake move to client-go
2017-01-25 08:29:48 -05:00
Ivan Shvedunov
9b9c1e6952
Make top pod test table-driven
2016-12-12 20:23:17 +03:00
Pengfei Ni
f584ed4398
Fix package aliases to follow golang convention
2016-11-30 15:40:50 +08: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
f4016bef7a
Use heapster handler for pods from all namespaces.
2016-08-25 09:08:31 +02:00
mksalawa
2833119a15
Use List objects for metrics in kubectl top and HPA
2016-08-19 17:26:50 +02:00
mksalawa
5df9fe684d
Implement kubectl top command with subcommands.
2016-08-11 17:25:18 +02:00