From c6febe6250361eee580dbb8a601a444f23ed7ac2 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sun, 7 Jan 2018 16:32:59 +0000 Subject: Add pkg/fall for Fallthrough (#1355) * Add pkg/fall for Fallthrough Move this into it's own package to facilitate tests. Important bug was fixed: make the names fully qualified. Add fall package to hosts, reverse, etcd, and fix kubernetes and any tests. The k8s tests are still as-is, might need a future cleanup. --- plugin/kubernetes/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/kubernetes/handler.go') diff --git a/plugin/kubernetes/handler.go b/plugin/kubernetes/handler.go index 4606e3747..e02608a6b 100644 --- a/plugin/kubernetes/handler.go +++ b/plugin/kubernetes/handler.go @@ -59,7 +59,7 @@ func (k Kubernetes) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.M } if k.IsNameError(err) { - if plugin.Fallthrough(k.Fallthrough, state.Name()) { + if k.Fall.Through(state.Name()) { return plugin.NextOrFailure(k.Name(), k.Next, ctx, w, r) } return plugin.BackendError(&k, zone, dns.RcodeNameError, state, nil /* err */, plugin.Options{}) -- cgit v1.2.3