mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 01:04:15 -04:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user