Commit d7d62497 authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Don't update NodeNetworkUnavailable condition if it's already set correctly

parent a665002d
......@@ -137,7 +137,11 @@ func (rc *RouteController) reconcile(nodes []api.Node, routes []*cloudprovider.R
}
}(node.Name, nameHint, route)
} else {
rc.updateNetworkingCondition(node.Name, true)
// 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)
}
}
nodeCIDRs[node.Name] = node.Spec.PodCIDR
}
......
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