Commit 9fc8ebda authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
parents f84e1387 d7d62497
...@@ -137,8 +137,12 @@ func (rc *RouteController) reconcile(nodes []api.Node, routes []*cloudprovider.R ...@@ -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 {
......
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