Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes#18514 from juanvallejo/jvallejo/handle-…
…watch-multiple-reqs Automatic merge from submit-queue. UPSTREAM: 59506: fix watch on multiple reqs Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1537789 `oc 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 @jeremyeder Origin-commit: 48d2a6d1900fb16a35fb7ff47d3750f8021b9ef3
- Loading branch information