From 3345d8d8b3476656d13847675e356a1aa7be0733 Mon Sep 17 00:00:00 2001 From: Arne Winter Date: Fri, 6 Sep 2024 21:58:03 +0200 Subject: [PATCH] Update pkg/cloudprovider/instances.go Co-authored-by: Brad Davidson Signed-off-by: Arne Winter --- pkg/cloudprovider/instances.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/cloudprovider/instances.go b/pkg/cloudprovider/instances.go index 8c932db7c300..045c92be8549 100644 --- a/pkg/cloudprovider/instances.go +++ b/pkg/cloudprovider/instances.go @@ -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