Skip to content

Commit

Permalink
rename Adresses
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasferrandiz authored and aauren committed Jan 23, 2023
1 parent a7e5803 commit 318a29c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/utils/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ func GetNodeIPDualStack(node *apiv1.Node, enableIPv4, enableIPv6 bool) (net.IP,
for _, address := range addresses {
addressesPerType.add(address)
}
if addresses, ok := addressesPerType[apiv1.NodeInternalIP]; ok {
for _, address := range addresses {
if internalAddresses, ok := addressesPerType[apiv1.NodeInternalIP]; ok {
for _, address := range internalAddresses {
if ipAddrv4 == nil && enableIPv4 && netutils.IsIPv4String(address.Address) {
ipAddrv4 = net.ParseIP(address.Address)
}
Expand All @@ -100,8 +100,8 @@ func GetNodeIPDualStack(node *apiv1.Node, enableIPv4, enableIPv6 bool) (net.IP,
}
}
}
if addresses, ok := addressesPerType[apiv1.NodeExternalIP]; ok {
for _, address := range addresses {
if externalAddresses, ok := addressesPerType[apiv1.NodeExternalIP]; ok {
for _, address := range externalAddresses {
if ipAddrv4 == nil && enableIPv4 && netutils.IsIPv4String(address.Address) {
ipAddrv4 = net.ParseIP(address.Address)
}
Expand Down

0 comments on commit 318a29c

Please sign in to comment.