aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/xfr_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/kubernetes/xfr_test.go')
-rw-r--r--plugin/kubernetes/xfr_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/kubernetes/xfr_test.go b/plugin/kubernetes/xfr_test.go
index 78ad98208..dc6404c0c 100644
--- a/plugin/kubernetes/xfr_test.go
+++ b/plugin/kubernetes/xfr_test.go
@@ -16,7 +16,7 @@ func TestKubernetesXFR(t *testing.T) {
k := New([]string{"cluster.local."})
k.APIConn = &APIConnServeTest{}
k.TransferTo = []string{"10.240.0.1:53"}
- k.Namespaces = map[string]bool{"testns": true}
+ k.Namespaces = map[string]struct{}{"testns": struct{}{}}
ctx := context.TODO()
w := dnstest.NewMultiRecorder(&test.ResponseWriter{})
@@ -104,7 +104,7 @@ func TestKubernetesXFRNotAllowed(t *testing.T) {
k := New([]string{"cluster.local."})
k.APIConn = &APIConnServeTest{}
k.TransferTo = []string{"1.2.3.4:53"}
- k.Namespaces = map[string]bool{"testns": true}
+ k.Namespaces = map[string]struct{}{"testns": struct{}{}}
ctx := context.TODO()
w := dnstest.NewMultiRecorder(&test.ResponseWriter{})