k3s/hack/make-rules
Kubernetes Submit Queue 198a098d9d
Merge pull request #59506 from juanvallejo/jvallejo/handle-watch-multiple-reqs
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
2018-02-12 02:25:45 -08:00
..
helpers Add sample CustomResourceDefinition controller 2017-10-19 00:21:57 +01:00
BUILD Remove all traces of federation 2017-10-26 13:37:37 -07:00
Makefile.manifest Make the pause image a manifest list 2018-01-24 02:10:45 -05:00
build.sh
clean.sh Move make clean to a static list 2017-09-29 12:36:18 -07:00
cross.sh
make-help.sh Move scheduler code out of plugin directory. 2018-01-05 15:05:01 -08:00
test-cmd-util.sh Merge pull request #59506 from juanvallejo/jvallejo/handle-watch-multiple-reqs 2018-02-12 02:25:45 -08:00
test-cmd.sh kube-apiserver flag --admision-control is deprecated, use the new --enable-admission-plugins 2018-01-24 20:47:54 +08:00
test-e2e-node.sh use node-e2e framework for testing cadvisor 2018-01-31 10:14:54 -08:00
test-integration.sh Allow integration test timeout override. 2017-12-21 10:55:09 -08:00
test-kubeadm-cmd.sh
test.sh Remove all traces of federation 2017-10-26 13:37:37 -07:00
update.sh Force use of Makefile for update 2018-01-22 15:11:16 -08:00
verify.sh fix all the typos across the project 2018-02-11 11:04:14 +08:00
vet.sh Merge pull request #46923 from dims/nuke-wrapper-go-flags 2017-06-22 20:26:29 -07:00