fix: removing fmt.Printf

This commit is contained in:
hjoshi123 2025-03-17 20:33:17 -06:00
parent 1fbcb5749a
commit ed2419a5ee
No known key found for this signature in database
2 changed files with 1 additions and 6 deletions

View File

@ -190,8 +190,6 @@ func (ns *nodeSource) nodeAddresses(node *v1.Node) ([]string, error) {
}
}
fmt.Printf("%v\n", addresses)
if len(addresses[v1.NodeExternalIP]) > 0 {
return append(addresses[v1.NodeExternalIP], ipv6Addresses...), nil
}

View File

@ -18,7 +18,6 @@ package source
import (
"context"
"fmt"
"k8s.io/utils/ptr"
"testing"
@ -378,9 +377,7 @@ func testNodeSourceEndpoints(t *testing.T) {
tc.exposeInternalIPv6 = new(bool)
*tc.exposeInternalIPv6 = true
}
fmt.Printf("node: %v %v\n", tc.nodeName, *tc.exposeInternalIPv6)
// Create our object under test and get the endpoints.
client, err := NewNodeSource(
context.TODO(),