mirror of
https://github.com/coredns/coredns.git
synced 2025-11-28 22:54:10 -05:00
plugin/nomad: Support service filtering (#7724)
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
This commit is contained in:
@@ -77,6 +77,12 @@ func parse(c *caddy.Controller, n *Nomad) error {
|
||||
return c.Err("at least one address is required")
|
||||
}
|
||||
addresses = append(addresses, args...)
|
||||
case "filter":
|
||||
args := c.RemainingArgs()
|
||||
if len(args) != 1 {
|
||||
return c.Err("exactly one filter is required")
|
||||
}
|
||||
n.filter = args[0]
|
||||
case "token":
|
||||
args := c.RemainingArgs()
|
||||
if len(args) != 1 {
|
||||
|
||||
Reference in New Issue
Block a user