k3s/pkg/client
Kubernetes Submit Queue 68ca638164 Merge pull request #35672 from zlabjp/fix-list-and-watch-goroutine-leak
Automatic merge from submit-queue

Fix resync goroutine leak in ListAndWatch

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**:

This PR fixes resync goroutine leak in ListAndWatch function

**Which issue this PR fixes** _(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)_: fixes #

fixes #35015

**Special notes for your reviewer**:

**Release note**:

<!--  Steps to write your release note:
1. Use the release-note-* labels to set the release note state (if you have access) 
2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
-->

``` release-note
```

Previously, we had no way to stop resync goroutine when ListAndWatch
returned.  goroutine leaked every time ListAndWatch returned, for
example, with error.  This commit adds another channel to signal that
resync goroutine should exit when ListAndWatch returns.
2016-12-05 02:41:33 -08:00
..
cache Merge pull request #35672 from zlabjp/fix-list-and-watch-goroutine-leak 2016-12-05 02:41:33 -08:00
chaosclient autogenerated 2016-10-21 17:32:32 -07:00
clientset_generated generated: refactor 2016-11-23 22:30:47 -06:00
conditions generated: refactor 2016-11-23 22:30:47 -06:00
informers refactor: generated 2016-12-03 19:10:46 -05:00
leaderelection refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
listers refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
metrics autogenerated 2016-10-21 17:32:32 -07:00
record refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
restclient refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
retry generated: refactor 2016-11-23 22:30:47 -06:00
testdata
testing refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
transport add other impersonation fields to transport 2016-11-15 08:10:30 -05:00
typed refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
unversioned refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00