k8s-merge-robot
1e33d117fe
Merge pull request #28294 from ncdc/return-error-for-kubectl-get-singluar
...
Automatic merge from submit-queue
kubectl: don't display an empty list when trying to get a single resource that isn't found
Return immediately when attempting to get a singular resource that isn't found, so that we avoid
printing out a List if the output format is something like json or yaml.
Before:
```
$ kubectl get pod/foo -o yaml
apiVersion: v1
items: []
kind: List
metadata: {}
pods "foo" not found
```
After:
```
$ kubectl get pod/foo -o yaml
pods "foo" not found
```
Fixes #28243
@kubernetes/kubectl @kubernetes/rh-ux @smarterclayton @liggitt @deads2k @metral
2016-07-01 13:40:45 -07:00
..
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-30 22:07:51 -07:00
2016-06-29 17:47:36 -07:00
2016-06-25 14:47:30 -07:00
2016-06-28 14:36:06 -07:00
2016-06-08 17:22:12 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 18:46:07 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-30 20:39:31 -07:00
2016-06-29 17:47:36 -07:00
2016-03-02 20:46:32 -05:00
2016-07-01 13:40:45 -07:00
2016-06-29 20:29:50 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00
2016-06-29 17:47:36 -07:00