Skip to content

Commit

Permalink
fix joining over lb
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Oct 19, 2023
1 parent 77c32f8 commit e80aa81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrapper/internal/joinclient/joinclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ func (c *JoinClient) tryJoinWithAvailableServices() error {

var endpoints []string

ip, _, err := c.metadataAPI.GetLoadBalancerEndpoint(ctx)
endpoint, _, err := c.metadataAPI.GetLoadBalancerEndpoint(ctx)
if err != nil {
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)
if err != nil {
Expand Down

0 comments on commit e80aa81

Please sign in to comment.