• Kubernetes Submit Queue's avatar
    Merge pull request #40551 from… · 25de8ef6
    Kubernetes Submit Queue authored
    Merge pull request #40551 from juanvallejo/jvallejo/only-output-no-resources-found-for-human-readable-printer
    
    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
    25de8ef6
Name
Last commit
Last update
..
BUILD Loading commit data...
etcd.sh Loading commit data...
golang.sh Loading commit data...
init.sh Loading commit data...
swagger.sh Loading commit data...
test.sh Loading commit data...
util.sh Loading commit data...
version.sh Loading commit data...