diff --git a/source/node.go b/source/node.go index d241653e9..9d8977d77 100644 --- a/source/node.go +++ b/source/node.go @@ -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 } diff --git a/source/node_test.go b/source/node_test.go index 6adeb283f..78be6bb39 100644 --- a/source/node_test.go +++ b/source/node_test.go @@ -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(),