mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-19 02:38:07 -05:00
Automatic merge from submit-queue (batch tested with PRs 40691, 40551, 40683, 40700, 40702)
only output "No resources found." for human readable printers
**Release note**:
```release-note
release note none
```
This patch removes the message `No resources found` (currently printed through stderr) when printing through a generic / non-human-readable printer (json, yaml, jsonpath, custom-columns).
**Before***
```
$ kubectl get pods -o json
No resources found.
{
"apiVersion": "v1",
"items": [],
"kind": "List",
"metadata": {},
"resourceVersion": "",
"selfLink": ""
}
```
**After**
```
$ kubectl get pods -o json
{
"apiVersion": "v1",
"items": [],
"kind": "List",
"metadata": {},
"resourceVersion": "",
"selfLink": ""
}
```
cc @fabianofranz @stevekuznetsov
|
||
|---|---|---|
| .. | ||
| helpers | ||
| build.sh | ||
| cross.sh | ||
| make-help.sh | ||
| test-cmd-util.sh | ||
| test-cmd.sh | ||
| test-e2e-node.sh | ||
| test-federation-cmd.sh | ||
| test-integration.sh | ||
| test-kubeadm-cmd.sh | ||
| test.sh | ||
| verify.sh | ||
| vet.sh | ||