diff options
Diffstat (limited to 'plugin/federation')
-rw-r--r-- | plugin/federation/README.md | 8 | ||||
-rw-r--r-- | plugin/federation/setup.go | 8 |
2 files changed, 5 insertions, 11 deletions
diff --git a/plugin/federation/README.md b/plugin/federation/README.md index 1bcd23af6..e65a2f6d8 100644 --- a/plugin/federation/README.md +++ b/plugin/federation/README.md @@ -17,16 +17,14 @@ Enabling *federation* without also having *kubernetes* is a noop. ~~~ federation [ZONES...] { NAME DOMAIN - upstream [ADDRESS...] + upstream } ~~~ * Each **NAME** and **DOMAIN** defines federation membership. One entry for each. A duplicate **NAME** will silently overwrite any previous value. -* `upstream` [**ADDRESS**...] defines the upstream resolvers used for resolving the `CNAME` target - produced by this plugin. If no **ADDRESS** is given, CoreDNS - will resolve External Services against itself. **ADDRESS** can be an IP, an IP:port, or a path - to a file structured like resolv.conf. +* `upstream` [**ADDRESS**...] resolve the `CNAME` target produced by this plugin. CoreDNS + will resolve External Services against itself. ## Examples diff --git a/plugin/federation/setup.go b/plugin/federation/setup.go index 84e9aba16..0e3decf1b 100644 --- a/plugin/federation/setup.go +++ b/plugin/federation/setup.go @@ -64,12 +64,8 @@ func federationParse(c *caddy.Controller) (*Federation, error) { x := c.Val() switch x { case "upstream": - args := c.RemainingArgs() - u, err := upstream.New(args) - if err != nil { - return nil, err - } - fed.Upstream = &u + c.RemainingArgs() + fed.Upstream = upstream.New() default: args := c.RemainingArgs() if x := len(args); x != 1 { |