Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error loop caused by failure to delete a route
When a LoadBalancer with ingress IP is created, corresponding route for the ingress IP is also installed. When deleting the LoadBalancer, corresponding route should be also uninstalled. Before uninstalling the route, if the route is removed, then deleting the route will get a failure and return an error. The error will trigger the event of delete the LoadBalancer again, obviously, deleting the route will get a failure and return an error another time, resulting in an error loop. This PR fixes the error loop by logging a warning instead of returning an error when deleting route for ingress IP. Signed-off-by: Hongliang Liu <lhongliang@vmware.com>
- Loading branch information