• Kubernetes Submit Queue's avatar
    Merge pull request #59506 from juanvallejo/jvallejo/handle-watch-multiple-reqs · 198a098d
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    fix --watch on multiple requests
    
    **Release note**:
    ```release-note
    NONE
    ```
    
    `kubectl get <resource> --watch` only supports watching a single resource kind at a time.
    This check fails if more than one resource `Info` is returned.
    
    When dealing with large quantities of a single resource kind, or an amount that exceeds the value of `--chunk-size`, more than one request is made to the server causing a resource `Info` to be created for each of the requests, ultimately causing the above check to fail even though we are dealing with the same type of resource.
    
    This patch modifies that check to take into account the GVKs of all infos returned, and only fail if at least one differs.
    
    cc @deads2k
    198a098d
Name
Last commit
Last update
..
helpers Loading commit data...
BUILD Loading commit data...
Makefile.manifest Loading commit data...
build.sh Loading commit data...
clean.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-integration.sh Loading commit data...
test-kubeadm-cmd.sh Loading commit data...
test.sh Loading commit data...
update.sh Loading commit data...
verify.sh Loading commit data...
vet.sh Loading commit data...