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-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-30 16:32:16 -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-30 12:28:51 -04:00
2016-07-01 00:35:56 +03: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