Skip to content

Commit

Permalink
Update pkg/cloudprovider/instances.go
Browse files Browse the repository at this point in the history
Co-authored-by: Brad Davidson <brad@oatmail.org>
Signed-off-by: Arne Winter <github@arnewinter.dev>
  • Loading branch information
arnemileswinter and brandond authored Sep 6, 2024
1 parent 72fdef9 commit 3345d8d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/cloudprovider/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ func (k *k3s) InstanceMetadata(ctx context.Context, node *corev1.Node) (*cloudpr
for _, v := range strings.Split(address, ",") {
metadata.NodeAddresses = append(metadata.NodeAddresses, corev1.NodeAddress{Type: corev1.NodeExternalDNS, Address: v})
}
} else if address = node.Labels[ExternalDNSKey]; address != "" {
metadata.NodeAddresses = append(metadata.NodeAddresses, corev1.NodeAddress{Type: corev1.NodeExternalDNS, Address: address})
}

// check hostname
Expand Down

0 comments on commit 3345d8d

Please sign in to comment.