aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/setup.go
diff options
context:
space:
mode:
authorGravatar John Belamaric <jbelamaric@infoblox.com> 2018-01-06 14:52:09 -0500
committerGravatar GitHub <noreply@github.com> 2018-01-06 14:52:09 -0500
commit84ebbbc7225a8d7eb5e00c0c525f7e12932a9fe4 (patch)
tree075407cf860a7e32c121dfc0d292fd389bf7a3c2 /plugin/kubernetes/setup.go
parent75a8a17da4fc95c086dfb447d29c02e7dbd05561 (diff)
downloadcoredns-84ebbbc7225a8d7eb5e00c0c525f7e12932a9fe4.tar.gz
coredns-84ebbbc7225a8d7eb5e00c0c525f7e12932a9fe4.tar.zst
coredns-84ebbbc7225a8d7eb5e00c0c525f7e12932a9fe4.zip
kubernetes: Add zone filtering to fallthrough (#1353)
* Add zone filtering to fallthrough * Doh. gofmt * Update documentation
Diffstat (limited to 'plugin/kubernetes/setup.go')
-rw-r--r--plugin/kubernetes/setup.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugin/kubernetes/setup.go b/plugin/kubernetes/setup.go
index fd63d6ff6..41727cb7e 100644
--- a/plugin/kubernetes/setup.go
+++ b/plugin/kubernetes/setup.go
@@ -172,12 +172,8 @@ func kubernetesParse(c *caddy.Controller) (*Kubernetes, dnsControlOpts, error) {
}
return nil, opts, c.ArgErr()
case "fallthrough":
- args := c.RemainingArgs()
- if len(args) == 0 {
- k8s.Fallthrough = true
- continue
- }
- return nil, opts, c.ArgErr()
+ zones := c.RemainingArgs()
+ k8s.Fallthrough = &zones
case "upstream":
args := c.RemainingArgs()
if len(args) == 0 {