• 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
..
helpers Loading commit data...
build.sh Loading commit data...
cross.sh Loading commit data...
make-help.sh Loading commit data...
test-cmd-util.sh Loading commit data...
test-cmd.sh Loading commit data...
test-e2e-node.sh Loading commit data...
test-federation-cmd.sh Loading commit data...
test-integration.sh Loading commit data...
test-kubeadm-cmd.sh Loading commit data...
test.sh Loading commit data...
verify.sh Loading commit data...
vet.sh Loading commit data...