From ed2419a5ee615ab389ce1685d7410d81192e1cd3 Mon Sep 17 00:00:00 2001 From: hjoshi123 Date: Mon, 17 Mar 2025 20:33:17 -0600 Subject: [PATCH] fix: removing fmt.Printf --- source/node.go | 2 -- source/node_test.go | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) 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(),