mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #32891 from wojtek-t/route_controller_fix
Automatic merge from submit-queue Don't update NodeNetworkUnavailable condition if it's already set cor… Ref #32571
This commit is contained in:
commit
9fc8ebdafa
@ -137,8 +137,12 @@ func (rc *RouteController) reconcile(nodes []api.Node, routes []*cloudprovider.R
|
|||||||
}
|
}
|
||||||
}(node.Name, nameHint, route)
|
}(node.Name, nameHint, route)
|
||||||
} else {
|
} else {
|
||||||
|
// Update condition only if it doesn't reflect the current state.
|
||||||
|
_, condition := api.GetNodeCondition(&node.Status, api.NodeNetworkUnavailable)
|
||||||
|
if condition == nil || condition.Status != api.ConditionFalse {
|
||||||
rc.updateNetworkingCondition(node.Name, true)
|
rc.updateNetworkingCondition(node.Name, true)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
nodeCIDRs[node.Name] = node.Spec.PodCIDR
|
nodeCIDRs[node.Name] = node.Spec.PodCIDR
|
||||||
}
|
}
|
||||||
for _, route := range routes {
|
for _, route := range routes {
|
||||||
|
Loading…
Reference in New Issue
Block a user