mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #56405 from shyamjvs/improve-error-handling-cidr-allocator
Automatic merge from submit-queue (batch tested with PRs 56094, 52910, 55953, 56405, 56415). 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>. Requeue failed updates for retry in CIDR allocator Split from https://github.com/kubernetes/kubernetes/pull/56352 Ref https://github.com/kubernetes/kubernetes/issues/52292 /cc @wojtek-t /kind bug /priority critical-urgent ```release-note NONE ``` cc @kubernetes/sig-network-misc
This commit is contained in:
commit
1ee9d20534
@ -146,7 +146,10 @@ func (ca *cloudCIDRAllocator) worker(stopChan <-chan struct{}) {
|
||||
glog.Warning("Channel nodeCIDRUpdateChannel was unexpectedly closed")
|
||||
return
|
||||
}
|
||||
ca.updateCIDRAllocation(workItem)
|
||||
if err := ca.updateCIDRAllocation(workItem); err != nil {
|
||||
// Requeue the failed node for update again.
|
||||
ca.nodeUpdateChannel <- workItem
|
||||
}
|
||||
case <-stopChan:
|
||||
return
|
||||
}
|
||||
|
@ -176,7 +176,10 @@ func (r *rangeAllocator) worker(stopChan <-chan struct{}) {
|
||||
glog.Warning("Channel nodeCIDRUpdateChannel was unexpectedly closed")
|
||||
return
|
||||
}
|
||||
r.updateCIDRAllocation(workItem)
|
||||
if err := r.updateCIDRAllocation(workItem); err != nil {
|
||||
// Requeue the failed node for update again.
|
||||
r.nodeCIDRUpdateChannel <- workItem
|
||||
}
|
||||
case <-stopChan:
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user