mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-11 04:28:37 -05:00
bootstrapper: only err if no control plane IPs available (#3496)
Previously we errored out of the entire join if retrieval of either LB IP or control plane public IP failed. This resulted in the entire "use either IP" logic not working as intended. This now makes it log a warning only if the IP retrievals fail, and only errors out of the join if no IP can be found at all.
This commit is contained in:
parent
fbdf1db053
commit
52372ae808
@ -173,13 +173,13 @@ func (c *JoinClient) tryJoinWithAvailableServices() (ticket *joinproto.IssueJoin
|
|||||||
|
|
||||||
endpoint, _, err := c.metadataAPI.GetLoadBalancerEndpoint(ctx)
|
endpoint, _, err := c.metadataAPI.GetLoadBalancerEndpoint(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, fmt.Errorf("failed to get load balancer endpoint: %w", err)
|
c.log.Warn("Failed to get load balancer endpoint", "err", err)
|
||||||
}
|
}
|
||||||
endpoints = append(endpoints, endpoint)
|
endpoints = append(endpoints, endpoint)
|
||||||
|
|
||||||
ips, err := c.getControlPlaneIPs(ctx)
|
ips, err := c.getControlPlaneIPs(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, fmt.Errorf("failed to get control plane IPs: %w", err)
|
c.log.Warn("Failed to get control plane IPs", "err", err)
|
||||||
}
|
}
|
||||||
endpoints = append(endpoints, ips...)
|
endpoints = append(endpoints, ips...)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user