mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
fix joining over lb (#2478)
This commit is contained in:
parent
43ee0791c6
commit
6c0a3b8efa
@ -191,11 +191,11 @@ func (c *JoinClient) tryJoinWithAvailableServices() error {
|
|||||||
|
|
||||||
var endpoints []string
|
var endpoints []string
|
||||||
|
|
||||||
ip, _, err := c.metadataAPI.GetLoadBalancerEndpoint(ctx)
|
endpoint, _, err := c.metadataAPI.GetLoadBalancerEndpoint(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to get load balancer endpoint: %w", err)
|
return fmt.Errorf("failed to get load balancer endpoint: %w", err)
|
||||||
}
|
}
|
||||||
endpoints = append(endpoints, net.JoinHostPort(ip, strconv.Itoa(constants.JoinServiceNodePort)))
|
endpoints = append(endpoints, endpoint)
|
||||||
|
|
||||||
ips, err := c.getControlPlaneIPs(ctx)
|
ips, err := c.getControlPlaneIPs(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user