Skip to content

Commit

Permalink
fix(node.go): make node address errors more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
aauren committed Oct 7, 2023
1 parent d7e2a14 commit 9d2b3c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ func GetNodeIPDualStack(node *apiv1.Node, enableIPv4, enableIPv6 bool) (net.IP,
}

if enableIPv4 && ipAddrv4 == nil {
return nil, nil, errors.New("host IPv4 unknown")
return nil, nil, errors.New("host IPv4 unknown, check node's status.addresses in API server")
}
if enableIPv6 && ipAddrv6 == nil {
return nil, nil, errors.New("host IPv6 unknown")
return nil, nil, errors.New("host IPv6 unknown, check node's status.address in API server")
}
return ipAddrv4, ipAddrv6, nil
}
Expand Down

0 comments on commit 9d2b3c7

Please sign in to comment.