Skip to content

Commit

Permalink
add IfaceHasNoAddr check for external ip delete error (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingkunl authored Aug 14, 2020
1 parent 0cca5f1 commit 7613a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/proxy/service_endpoints_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (nsc *NetworkServicesController) setupExternalIPServices(serviceInfoMap ser

// ensure VIP less director. we dont assign VIP to any interface
err = nsc.ln.ipAddrDel(dummyVipInterface, externalIP)
if err != nil {
if err != nil && err.Error() != IfaceHasNoAddr {
glog.Errorf("Failed to delete external ip address from dummyVipInterface due to %s", err)
continue
}
Expand Down

0 comments on commit 7613a73

Please sign in to comment.