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:
parent
d27be86e3e
commit
399073ec6b
3 changed files with 5 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue