David Eads
facd04be43
use IOStreams for cli commands
2018-05-08 09:02:34 -04:00
Di Xu
cda7f95d46
flag value bindings for kubectl label/patch/taint/top commands
2018-02-24 16:37:19 +08: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
Frederic Branczyk
b1448adb59
kubectl: Use metrics-server for kubectl top commands
2018-01-22 21:45:06 +01:00
Di Xu
1c715d51c4
some code change
...
fix wrong required flags
disable the addition of [flags] to the usage, use customized useline
fix function rename
2017-12-25 16:23:38 +08:00
supereagle
032416c75d
use core client with explicit version
...
fix more usage of deprecated core client
2017-11-25 08:14:10 +08:00
zhengjiajin
fe0f461cea
remove dependency from top command
2017-10-31 16:15:32 +08:00
Kubernetes Submit Queue
f3c2324af3
Merge pull request #50620 from juanvallejo/jvallejo/update-kubectl-top-validation
...
Automatic merge from submit-queue (batch tested with PRs 47896, 50678, 50620, 50631, 51005)
allow heapster option defaults to be set - kubectl top node|pod
**Release note**:
```release-note
NONE
```
Allows downstream / outside consumers of `NewCmdTopNode` and `NewCmdTopPod` commands to set project or case-specific heapster option defaults.
Related downstream PR: https://github.com/openshift/origin/pull/15764
cc @fabianofranz
2017-08-21 08:26:23 -07:00
juanvallejo
5b8b1eb2eb
allow default option values - kube top node|pod
2017-08-17 11:24:29 -04:00
zhengjiajin
43e3044b73
fix issue( #49883 ) Add selector example
2017-08-17 20:27:11 +08:00
ymqytw
b776df8a20
move i18n to kubectl/util
2017-08-16 12:27:36 -07:00
Alexander Campbell
6fd36c10ad
kubectl/cmd: many small refactors
...
* Rename variables and functions to match Go convention.
For example, UsageError --> UsageErrorf.
* Remove redundant or unreachable code.
* Simplify some utility functions (no functionality changes).
* Fix hanging 'if { return } else { return }' constructs.
* Fix several incorrect printf verbs.
2017-06-27 16:25:20 -07:00
Brendan Burns
79f51923d3
Extract a bunch more strings from kubectl
2017-04-06 20:12:50 -07:00
Brendan Burns
d9c4a289a6
Extract strings for translation.
2017-02-06 22:32:01 -08:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Marko Luksa
764e8bd6c6
Kubectl top now also accepts short forms for "node" and "pod" ("no" and "po")
2016-12-24 17:25:08 +01:00
Wojciech Tyczynski
e8d1cba875
GetOptions in client calls
2016-12-09 09:42:01 +01:00
xilabao
b95dcfb424
update label filter prompt
2016-12-05 11:03:21 +08:00
Clayton Coleman
3d237cac2e
kubectl top pod|node should handle when Heapster is somewhere else
...
OpenShift runs Heapster on HTTPS, which means `top node` and `top pod`
are broken because they hardcode 'http' as the scheme. Provide an
options struct allowing users to specify `--heapster-namespace`,
`--heapster-service`, `--heapster-scheme`, and `--heapster-port` to the
commands (leveraging the existing defaults).
2016-12-01 12:33:32 -05:00
Chao Xu
850729bfaf
include multiple versions in clientset
...
update client-gen to use the term "internalversion" rather than "unversioned";
leave internal one unqualified;
cleanup client-gen
2016-10-29 13:30:47 -07:00
Fabiano Franz
f6d1ac72a0
Use our own normalizers for cmd examples and descriptions
2016-10-17 11:49:55 -02:00
AdoHe
b2280a646a
update various commands to adapt the new Factory interface
2016-10-13 21:01:14 +08:00
Kubernetes Submit Queue
33e5b0e0db
Merge pull request #32504 from kargakis/top-pod-fixes
...
Automatic merge from submit-queue
kubectl: run validation for 'top pod'
@mksalawa @kubernetes/kubectl
2016-09-14 05:35:42 -07:00
Michail Kargakis
4787dca073
kubectl: run validation for 'top pod'
2016-09-12 19:20:46 +02:00
deads2k
519c13745f
convert rest of kubectl to generated clients
2016-09-12 08:22:34 -04:00
mksalawa
87cba30aae
Print message if metrics are not yet available.
2016-08-31 11:54:53 +02:00
mksalawa
5df9fe684d
Implement kubectl top command with subcommands.
2016-08-11 17:25:18 +02:00