diff options
author | 2018-01-28 16:40:10 +0000 | |
---|---|---|
committer | 2018-01-28 08:40:10 -0800 | |
commit | 399073ec6b17c96f64912b4504390632e9a04aff (patch) | |
tree | 4dadfb8fb6a412ec8b1055bec9a52ff1902a49cc /plugin/kubernetes/setup.go | |
parent | d27be86e3e5baaa8e63c84e320207156f58b30cf (diff) | |
download | coredns-399073ec6b17c96f64912b4504390632e9a04aff.tar.gz coredns-399073ec6b17c96f64912b4504390632e9a04aff.tar.zst coredns-399073ec6b17c96f64912b4504390632e9a04aff.zip |
pl/kubernetes: drop the comma parsing (#1453)
Let caddyfile parser give us the token, the comma sep thing also didn't
work.
Fixes #1446
Diffstat (limited to 'plugin/kubernetes/setup.go')
-rw-r--r-- | plugin/kubernetes/setup.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/kubernetes/setup.go b/plugin/kubernetes/setup.go index cdb3b0eac..86221a182 100644 --- a/plugin/kubernetes/setup.go +++ b/plugin/kubernetes/setup.go @@ -135,9 +135,7 @@ func kubernetesParse(c *caddy.Controller) (*Kubernetes, dnsControlOpts, error) { case "endpoint": args := c.RemainingArgs() if len(args) > 0 { - for _, endpoint := range strings.Split(args[0], ",") { - k8s.APIServerList = append(k8s.APIServerList, strings.TrimSpace(endpoint)) - } + k8s.APIServerList = args continue } return nil, opts, c.ArgErr() |