k3s/pkg/kubectl
k8s-merge-robot 721eabf492 Merge pull request #28626 from juanvallejo/update-resource-builder-format-error
Automatic merge from submit-queue

update resource builder error message to be more clear

release-note-none

The error message given by command line `kubectl get` is sometimes of no help / not clear on what must be corrected, e.g.:
`kubectl get pod pod/database-1-i10b9`
error: when passing arguments in resource/name form, all arguments must include the resource 

##### Steps to Reproduce:
1. Run command "$ kubectl get pod pod/database-1-i10b9"  

##### Actual Result:
Get unfriendly error message which is of no help:
"error: when passing arguments in resource/name form, all arguments must include the resource"

##### Expected Result:
Error message should recommend end user to run this cli in good grammar: "$ kubectl get pod database-1-i10b9" or "$ kubectl get pod/database-1-i10b9"

##### Before
"error: when passing arguments in resource/name form, all arguments must include the resource"

##### After
"error: there is no need to specify a resource type as a separate argument when passing arguments in resource/name form (e.g. `kubectl get resource/<resource_name>` instead of `kubectl get resource resource/<resource_name>`"

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-07-13 14:42:02 -07:00
..
cmd Merge pull request #28531 from dims/fix-issues-28314 2016-07-13 06:09:25 -07:00
resource Merge pull request #28626 from juanvallejo/update-resource-builder-format-error 2016-07-13 14:42:02 -07:00
testing Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
OWNERS Remove bgrant from pkg/OWNERS and pkg/kubectl/OWNERS since he has plenty to do. 2016-06-16 08:21:27 -07:00
apply.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
autoscale.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
bash_comp_utils.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
configmap.go Move IsSecretKey into util/validation 2016-07-03 02:19:09 -07:00
configmap_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
custom_column_printer.go 24133 fix: --no-headers works with custom columns now 2016-07-07 10:04:09 +02:00
custom_column_printer_test.go 24133 fix: --no-headers works with custom columns now 2016-07-07 10:04:09 +02:00
describe.go Move deployment utilities to there own package 2016-07-08 09:46:56 +02:00
describe_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
doc.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
explain.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
history.go kubectl: refactor rollout history to be more configurable 2016-07-12 10:36:14 +02:00
interfaces.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubectl.go Add "deploy" abbrev for deployments to kubectl 2016-07-12 16:52:17 +03:00
kubectl_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
namespace.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
namespace_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
proxy_server.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
proxy_server_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resource_printer.go 24133 fix: --no-headers works with custom columns now 2016-07-07 10:04:09 +02:00
resource_printer_test.go 24133 fix: --no-headers works with custom columns now 2016-07-07 10:04:09 +02:00
rollback.go Move deployment utilities to there own package 2016-07-08 09:46:56 +02:00
rolling_updater.go Move deployment utilities to there own package 2016-07-08 09:46:56 +02:00
rolling_updater_test.go Remove Codec from ContentConfig. 2016-07-08 13:53:09 +02:00
rollout_status.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
run.go Make CIdentifier return error strings 2016-07-02 17:32:05 -07:00
run_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
scale.go Merge pull request #27048 from kargakis/ignore-only-409-in-scaler 2016-07-02 21:28:37 -07:00
scale_test.go Merge pull request #27048 from kargakis/ignore-only-409-in-scaler 2016-07-02 21:28:37 -07:00
secret.go Move IsSecretKey into util/validation 2016-07-03 02:19:09 -07:00
secret_for_docker_registry.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_docker_registry_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_tls.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_tls_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
service.go Merge pull request #26554 from kargakis/fix-expose-container-port 2016-07-12 13:12:53 -07:00
service_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
serviceaccount.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
serviceaccount_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorted_event_list.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorted_event_list_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorted_resource_name_list.go Merge pull request #28110 from mfojtik/describe-volume-mounts 2016-06-30 17:15:05 -07:00
sorted_resource_name_list_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorting_printer.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorting_printer_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
stop.go Move deployment utilities to there own package 2016-07-08 09:46:56 +02:00
stop_test.go Move deployment utilities to there own package 2016-07-08 09:46:56 +02:00
version.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
watchloop.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00