Skip to content

Commit

Permalink
Merge pull request #230 from rammanoj/log-bug-fix
Browse files Browse the repository at this point in the history
Add logs to node IP addresses.
  • Loading branch information
rammanoj authored Sep 24, 2024
2 parents 708ee98 + 95aebc6 commit 76dea77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cloud/linode/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func (i *instances) InstanceMetadata(ctx context.Context, node *v1.Node) (*cloud
addresses = append(addresses, v1.NodeAddress{Type: ip.ipType, Address: ip.ip})
}

klog.Infof("Instance %s, assembled IP addresses: %v", node.Name, addresses)
// note that Zone is omitted as it's not a thing in Linode
meta := &cloudprovider.InstanceMetadata{
ProviderID: fmt.Sprintf("%v%v", providerIDPrefix, linode.ID),
Expand Down
1 change: 1 addition & 0 deletions cloud/linode/loadbalancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,7 @@ func getNodePrivateIP(node *v1.Node) string {
return address
}

klog.Infof("Node %s, assigned IP addresses: %v", node.Name, node.Status.Addresses)
for _, addr := range node.Status.Addresses {
if addr.Type == v1.NodeInternalIP {
return addr.Address
Expand Down

0 comments on commit 76dea77

Please sign in to comment.