mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
plugin/k8s_external: Resolve headless services (#5505)
*add option for resolving headless Services without external IPs in k8s_external Signed-off-by: Tomas Kohout <tomas.kohout1995@gmail.com>
This commit is contained in:
@@ -68,6 +68,8 @@ func parse(c *caddy.Controller) (*External, error) {
|
||||
return nil, c.ArgErr()
|
||||
}
|
||||
e.apex = args[0]
|
||||
case "headless":
|
||||
e.headless = true
|
||||
default:
|
||||
return nil, c.Errf("unknown property '%s'", c.Val())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user