Skip to content

Commit

Permalink
add support for aws load balancers in liqo-network-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
alacuku committed Jul 20, 2021
1 parent 2997723 commit 7d84a6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/liqonet/tunnelEndpointCreator/serviceWatcher.go
Expand Up @@ -92,7 +92,11 @@ func (tec *TunnelEndpointCreator) serviceHandlerAdd(obj interface{}) {
klog.Infof("ingress IPs has not been set for service %s in namespace %s of type %s", s.GetName(), s.GetNamespace(), s.Spec.Type)
return
}
endpointIP = s.Status.LoadBalancer.Ingress[0].IP
if s.Status.LoadBalancer.Ingress[0].IP != "" {
endpointIP = s.Status.LoadBalancer.Ingress[0].IP
} else if s.Status.LoadBalancer.Ingress[0].Hostname != "" {
endpointIP = s.Status.LoadBalancer.Ingress[0].Hostname
}

for _, port := range s.Spec.Ports {
if port.Name == wireguard.DriverName {
Expand Down

0 comments on commit 7d84a6d

Please sign in to comment.