Unverified Commit bece0d52 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #65339 from liggitt/taint-manager-memory

Automatic merge from submit-queue (batch tested with PRs 65339, 65343, 65324, 65335, 65367). 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>. Remove item from taint manager workqueue on completion fixes a memory leak observed in the controller manager when creating/deleting pods containing tolerations xref #65325 ```release-note fixes a memory leak in the kube-controller-manager observed when large numbers of pods with tolerations are created/deleted ```
parents e467e9ab 8448ee4e
......@@ -224,9 +224,11 @@ func (tc *NoExecuteTaintManager) Run(stopCh <-chan struct{}) {
hash := hash(nodeUpdate.name())
select {
case <-stopCh:
tc.nodeUpdateQueue.Done(item)
break
case tc.nodeUpdateChannels[hash%workers] <- nodeUpdate:
}
tc.nodeUpdateQueue.Done(item)
}
}(stopCh)
......@@ -240,9 +242,11 @@ func (tc *NoExecuteTaintManager) Run(stopCh <-chan struct{}) {
hash := hash(podUpdate.nodeName())
select {
case <-stopCh:
tc.podUpdateQueue.Done(item)
break
case tc.podUpdateChannels[hash%workers] <- podUpdate:
}
tc.podUpdateQueue.Done(item)
}
}(stopCh)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment