juanvallejo
988e747649
update default run function for sub-commands
...
This patch updates parent commands of sub-commands to exit with a usage
error and exit code 1 on an invalid (non-sub-command) argument.
2016-10-31 10:08:12 -04: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
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