aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/kubernetes.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-06-12 03:23:25 +0100
committerGravatar Yong Tang <yong.tang.github@outlook.com> 2018-06-11 19:23:25 -0700
commit6e466d509281953fdf0209a5b50611e89b4689ae (patch)
treed0fda0bcb94a546c8281037b0359693cc8c6ac8b /plugin/kubernetes/kubernetes.go
parent58d69913639b7b210ed32afacb447ba53c7487a3 (diff)
downloadcoredns-6e466d509281953fdf0209a5b50611e89b4689ae.tar.gz
coredns-6e466d509281953fdf0209a5b50611e89b4689ae.tar.zst
coredns-6e466d509281953fdf0209a5b50611e89b4689ae.zip
Remove dnsutil.Dedup (#1867)
Remove the code and remove the call in etcd and kubernetes handlers. This does mean we should not add dups in the first place, which means adding maps in backend_lookup to prevent dups from begin added. This should cut down on the allocations because dnsutil.Dedup is very expensive by converting everything to strings, we avoid doing that now.
Diffstat (limited to 'plugin/kubernetes/kubernetes.go')
-rw-r--r--plugin/kubernetes/kubernetes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/kubernetes/kubernetes.go b/plugin/kubernetes/kubernetes.go
index d07b99f0e..af0e64ee9 100644
--- a/plugin/kubernetes/kubernetes.go
+++ b/plugin/kubernetes/kubernetes.go
@@ -107,7 +107,7 @@ func (k *Kubernetes) Services(state request.Request, exact bool, opt plugin.Opti
return []msg.Service{svc}, nil
case dns.TypeNS:
- // We can only get here if the qname equal the zone, see ServeDNS in handler.go.
+ // We can only get here if the qname equals the zone, see ServeDNS in handler.go.
ns := k.nsAddr()
svc := msg.Service{Host: ns.A.String(), Key: msg.Path(state.QName(), "coredns")}
return []msg.Service{svc}, nil