kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 79fc0a95a0 Merge pull request #35543 from philips/improve-version
Automatic merge from submit-queue

kubectl: add less verbose version

The kubectl version output is very complex and makes it hard for users
and vendors to give actionable information. For example during the
recent Kubernetes 1.4.3 TLS security scramble I had to write a one-liner
for users to get out the version number to give to figure out if they
are vulnerable:

```
$ kubectl version | grep -i Server | sed  -n 's%.*GitVersion:"\([^"]*\).*%\1%p'
```

Instead this patch outputs simply output by default

```
./kubectl version
Client Version: v1.4.3
Server Version: v1.4.3
```

Adding the `--verbose` flag will output the old format.
2016-11-14 22:39:21 -08:00
..
config update default run function for sub-commands 2016-10-31 10:08:12 -04:00
rollout support patch list of primitives 2016-11-09 11:46:59 -08:00
set support patch list of primitives 2016-11-09 11:46:59 -08:00
templates autogenerated 2016-10-21 17:32:32 -07:00
testing Add caching for discovery info 2016-11-04 21:17:12 +01:00
util support patch list of primitives 2016-11-09 11:46:59 -08:00
annotate_test.go support patch list of primitives 2016-11-09 11:46:59 -08:00
annotate.go support patch list of primitives 2016-11-09 11:46:59 -08:00
apiversions.go update various commands to adapt the new Factory interface 2016-10-13 21:01:14 +08:00
apply_test.go support patch list of primitives 2016-11-09 11:46:59 -08:00
apply.go Merge pull request #35647 from ymqytw/patch_primitive_list 2016-11-11 14:36:44 -08:00
attach_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
attach.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
autoscale.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
BUILD Merge pull request #35543 from philips/improve-version 2016-11-14 22:39:21 -08:00
certificates.go implement kubectl procelain csr commands 2016-11-08 06:33:46 -08:00
clusterinfo_dump_test.go Move the common test functions from cmd_test.go to cmd/testing/fake.go 2016-10-19 08:53:26 +10:00
clusterinfo_dump.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
clusterinfo.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
cmd_test.go support patch list of primitives 2016-11-09 11:46:59 -08:00
cmd.go Merge pull request #30237 from mikedanese/csr-porcelain 2016-11-09 16:57:49 -08:00
completion.go Add boilerplate to kubectl completion bash 2016-10-21 14:07:38 -07:00
convert.go Fix handling lists in kubectl convert 2016-11-10 18:19:30 -02:00
cp_test.go add kubectl cp 2016-10-29 20:24:54 -07:00
cp.go add kubectl cp 2016-10-29 20:24:54 -07:00
create_configmap_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_configmap.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_deployment_test.go Move the common test functions from cmd_test.go to cmd/testing/fake.go 2016-10-19 08:53:26 +10:00
create_deployment.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_namespace_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_namespace.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_quota_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_quota.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_secret_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_secret.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
create_service_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_service.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
create_serviceaccount_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_serviceaccount.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
delete_test.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
delete.go Merge pull request #35484 from smarterclayton/delete_warning 2016-11-05 11:19:04 -07:00
describe_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
describe.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
drain_test.go Fix kubectl drain for statefulset and use eviciton for drain if possible 2016-11-07 16:13:06 -08:00
drain.go Merge pull request #36211 from brendandburns/cordon 2016-11-08 16:05:53 -08:00
edit.go support patch list of primitives 2016-11-09 11:46:59 -08:00
exec_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
exec.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
explain.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
expose_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
expose.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
get_test.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
get.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
help.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
label_test.go support patch list of primitives 2016-11-09 11:46:59 -08:00
label.go support patch list of primitives 2016-11-09 11:46:59 -08:00
logs_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
logs.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
options.go update kubectl help output for better organization 2016-08-20 08:03:39 +08:00
patch_test.go support patch list of primitives 2016-11-09 11:46:59 -08:00
patch.go support patch list of primitives 2016-11-09 11:46:59 -08:00
portforward_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
portforward.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
proxy.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
replace_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
replace.go make kubectl replace generic 2016-11-04 07:50:31 -04:00
rollingupdate_test.go Move the common test functions from cmd_test.go to cmd/testing/fake.go 2016-10-19 08:53:26 +10:00
rollingupdate.go Update clientset generator to use RESTClient interface instead of the RESTClient data type 2016-10-21 10:13:51 +02:00
run_test.go Merge pull request #35732 from fabianofranz/run_cant_dryrun_with_attach 2016-10-30 13:07:28 -07:00
run.go Merge pull request #36355 from soltysh/deprecate_extensionsjob 2016-11-08 07:18:40 -08:00
scale.go support patch list of primitives 2016-11-09 11:46:59 -08:00
stop.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
taint_test.go support patch list of primitives 2016-11-09 11:46:59 -08:00
taint.go support patch list of primitives 2016-11-09 11:46:59 -08:00
top_node_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
top_node.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
top_pod_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
top_pod.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
top_test.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
top.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
version.go kubectl: add less verbose version 2016-11-10 14:07:42 -08:00