pl/kubernetes: drop the comma parsing (#1453)

Let caddyfile parser give us the token, the comma sep thing also didn't
work.

Fixes #1446
This commit is contained in:
Miek Gieben 2018-01-28 16:40:10 +00:00 committed by Yong Tang
parent d27be86e3e
commit 399073ec6b
3 changed files with 5 additions and 7 deletions

View file

@ -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()