mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/kubernetes: dont transfer unexposed namespaces (#2044)
dont transfer unexposed namespaces
This commit is contained in:
@@ -17,6 +17,7 @@ func TestKubernetesXFR(t *testing.T) {
|
||||
k := New([]string{"cluster.local."})
|
||||
k.APIConn = &APIConnServeTest{}
|
||||
k.TransferTo = []string{"127.0.0.1"}
|
||||
k.Namespaces = map[string]bool{"testns": true}
|
||||
|
||||
ctx := context.TODO()
|
||||
w := dnstest.NewMultiRecorder(&test.ResponseWriter{})
|
||||
|
||||
Reference in New Issue
Block a user