mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #82797 from yutedz/rel-cidr-wrong-err
Correct the error variable for releasing CIDR
This commit is contained in:
commit
658e57a157
@ -346,7 +346,7 @@ func (r *rangeAllocator) updateCIDRsAllocation(data nodeReservedCIDRs) error {
|
|||||||
if len(node.Spec.PodCIDRs) != 0 {
|
if len(node.Spec.PodCIDRs) != 0 {
|
||||||
klog.Errorf("Node %v already has a CIDR allocated %v. Releasing the new one.", node.Name, node.Spec.PodCIDRs)
|
klog.Errorf("Node %v already has a CIDR allocated %v. Releasing the new one.", node.Name, node.Spec.PodCIDRs)
|
||||||
for idx, cidr := range data.allocatedCIDRs {
|
for idx, cidr := range data.allocatedCIDRs {
|
||||||
if releaseErr := r.cidrSets[idx].Release(cidr); err != nil {
|
if releaseErr := r.cidrSets[idx].Release(cidr); releaseErr != nil {
|
||||||
klog.Errorf("Error when releasing CIDR idx:%v value: %v err:%v", idx, cidr, releaseErr)
|
klog.Errorf("Error when releasing CIDR idx:%v value: %v err:%v", idx, cidr, releaseErr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user