mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-23 07:20:37 -04:00
fix joining over lb (#2478)
This commit is contained in:
parent
43ee0791c6
commit
6c0a3b8efa
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue