k3s/pkg/kubectl
Kubernetes Submit Queue 9c7b59778c Merge pull request #46394 from alexandercampbell/write-help-messages-to-stdout
Automatic merge from submit-queue (batch tested with PRs 46394, 46650, 46436, 46673, 46212)

Write "kubectl options" help message to stdout, not stderr

Fix a very minor issue causing `kubectl` to write its help messages to `stderr` instead of `stdout`.

Try this:

`kubectl options | grep log`

It should print only the options related to logging, but right now it prints the entire help menu (since it's printing to stderr).

This patch brings us closer to unix convention and reduces user friction.

~~Another use case (if a user can't remember whether it's `-r` or `-R` for recursion):~~

~~`kubectl patch -h | grep recursive`~~

Update: this patch only affects `kubectl options`. The other commands are working as intended.

**Release note**:

```release-note
NONE
```
2017-05-31 00:14:00 -07:00
..
cmd Merge pull request #46394 from alexandercampbell/write-help-messages-to-stdout 2017-05-31 00:14:00 -07:00
metricsutil Merge pull request #45389 from monopole/isolation1 2017-05-15 19:34:52 -07:00
plugins kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
resource Merge pull request #45582 from CaoShuFeng/kubectl_set 2017-05-18 00:37:08 -07:00
testing Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
util **What this PR does / why we need it**: 2017-05-21 20:44:21 -07:00
BUILD Generated changes for collision count 2017-05-25 12:23:17 +02:00
OWNERS
apply.go Move API annotations into annotation_key_constants and remove api/annotations package 2017-05-16 21:55:23 -07:00
autoscale.go
bash_comp_utils.go
cluster.go [Federation] Use service accounts instead of the user's credentials when accessing joined clusters' API servers. 2017-05-19 18:05:09 -07:00
cluster_test.go [Federation] Use service accounts instead of the user's credentials when accessing joined clusters' API servers. 2017-05-19 18:05:09 -07:00
clusterrolebinding.go add validate in create rolebinding 2017-05-08 15:52:44 +08:00
configmap.go configmap.go: add one initialization symbol 2017-04-24 21:26:32 +08:00
configmap_test.go
deployment.go
deployment_test.go
doc.go
env_file.go
explain.go Update go-restful dependency 2017-05-05 13:57:01 -07:00
generate.go
generate_test.go
history.go Clean up pre-ControllerRef compatibility logic 2017-04-07 14:09:23 +08:00
interfaces.go
kubectl.go
kubectl_test.go
namespace.go
namespace_test.go
pdb.go PDB MaxUnavailable: kubectl changes 2017-05-23 07:18:44 -07:00
proxy_server.go allow kubectl proxy to handle specified reject methods and default to allow all 2017-04-29 21:10:52 -05:00
proxy_server_test.go allow kubectl proxy to handle specified reject methods and default to allow all 2017-04-29 21:10:52 -05:00
quota.go
quota_test.go
resource_filter.go
rolebinding.go add validate in create rolebinding 2017-05-08 15:52:44 +08:00
rolebinding_test.go Supplement unit tests to `kubectl create rolebinding` command. 2017-03-29 16:36:22 +08:00
rollback.go Clean up pre-ControllerRef compatibility logic 2017-04-07 14:09:23 +08:00
rolling_updater.go Merge pull request #45335 from zhangxiaoyu-zidif/fix-goerrors-new 2017-05-30 03:46:57 -07:00
rolling_updater_test.go **What this PR does / why we need it**: 2017-05-21 20:44:21 -07:00
rollout_status.go Revert respecting maxUnavailable for DaemonSets 2017-04-22 17:18:09 +02:00
rollout_status_test.go Revert respecting maxUnavailable for DaemonSets 2017-04-22 17:18:09 +02:00
run.go Assign label to pod when exec 'kubectl run' command with flags "--expose=true" and "--restart=Never" 2017-04-26 11:53:33 +08:00
run_test.go Assign label to pod when exec 'kubectl run' command with flags "--expose=true" and "--restart=Never" 2017-04-26 11:53:33 +08:00
scale.go
scale_test.go
secret.go secret.go: add initial symbol and format err 2017-04-25 10:47:50 +08:00
secret_for_docker_registry.go
secret_for_docker_registry_test.go
secret_for_tls.go
secret_for_tls_test.go
secret_test.go
service.go
service_basic.go
service_basic_test.go
service_test.go
serviceaccount.go
serviceaccount_test.go
sorting_printer.go
sorting_printer_test.go make unstructured items correspond to other items for storage 2017-04-11 08:44:16 -04:00
stop.go Clean up pre-ControllerRef compatibility logic 2017-04-07 14:09:23 +08:00
stop_test.go Remove obsolete deployment helpers 2017-05-25 11:17:44 +02:00
versioned_client.go