Skip to content

Commit

Permalink
Merge pull request #149 from loxilb-io/trekkie-fix1
Browse files Browse the repository at this point in the history
PR : Try to push lbmodel when kube-loxilb is restarted
  • Loading branch information
TrekkieCoder authored Jun 20, 2024
2 parents d663067 + 92e0365 commit 7e16814
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/agent/manager/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,9 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error {
}
}

update = m.checkUpdateEndpoints(cacheKey, endpointIPs) || m.checkUpdateExternalIP(ingSvcPairs, svc)
if !update {
update = m.checkUpdateEndpoints(cacheKey, endpointIPs) || m.checkUpdateExternalIP(ingSvcPairs, svc)
}

if !update {
// TODO: Some cloud providers(e.g: K3d) delete external IPs assigned by kube-loxilb, so you can reach this syntax:
Expand Down

0 comments on commit 7e16814

Please sign in to comment.