mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-23 03:17:28 +00:00
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. ```