Files
kubernetes/pkg
Kubernetes Submit Queue 0eb364a313 Merge pull request #62572 from joelsmith/master
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>.

Prevent virtual infinite loop in volume controller

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

In WatchPod(), if one of the two channels being watched (pod updates and events) is closed, the for/select loop turns into a tight infinite loop because the select immediately falls through due to the channel being closed.

This PR changes WatchPod() to Watch the two channels independently instead.

**Which issue(s) this PR fixes**:
Fixes #62571

**Release note**:
```release-note
Fix potential infinite loop that can occur when NFS PVs are recycled.

```
2018-04-16 00:58:23 -07:00
..
2018-02-16 13:43:01 -08:00
2018-04-13 15:47:31 -07:00
2018-04-11 14:24:01 -07:00
2018-02-16 13:43:01 -08:00
2018-04-12 17:25:28 +08:00
2018-02-12 10:54:33 -05:00
2018-04-11 18:35:24 +02:00
2018-02-16 13:43:01 -08:00
2018-03-13 17:20:16 +08:00