From 630d3d60b9fa3b9c1f070e4aa0504e50a85d70c2 Mon Sep 17 00:00:00 2001 From: Chris O'Haver Date: Thu, 5 Sep 2019 09:07:55 -0400 Subject: plugin/kubernetes: Handle multiple local IPs and bind (#3208) * use all local IPs * mult/bind ips * gofmt + boundIPs fix * fix no matching endpoint case * don't duplicate NS records in answer * fix answer dedup * fix comment * add multi local ip test case --- plugin/kubernetes/ns_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/kubernetes/ns_test.go') diff --git a/plugin/kubernetes/ns_test.go b/plugin/kubernetes/ns_test.go index af057c254..5f9786a74 100644 --- a/plugin/kubernetes/ns_test.go +++ b/plugin/kubernetes/ns_test.go @@ -111,7 +111,7 @@ func TestNsAddrs(t *testing.T) { k := New([]string{"inter.webs.test."}) k.APIConn = &APIConnTest{} - k.interfaceAddrsFunc = func() net.IP { return net.ParseIP("10.244.0.20") } + k.localIPs = []net.IP{net.ParseIP("10.244.0.20")} cdrs := k.nsAddrs(false, k.Zones[0]) -- cgit v1.2.3