plugin/nomad: Support service filtering (#7724)

Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
This commit is contained in:
Olli Janatuinen
2025-11-25 20:05:14 +01:00
committed by GitHub
parent 3362885b56
commit bdc03ed540
4 changed files with 25 additions and 10 deletions

View File

@@ -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 {