diff options
author | 2018-02-14 15:11:26 -0500 | |
---|---|---|
committer | 2018-02-14 21:11:26 +0100 | |
commit | 71ee323651ffed5d09aa22ea8d17eefbac2f6d08 (patch) | |
tree | c9fb894a5de2dc34dd14b66057856244d8b28203 /plugin/etcd/lookup_test.go | |
parent | ee8084a08f8cfcd4357ae2ad0b6dff51ca322d3a (diff) | |
download | coredns-71ee323651ffed5d09aa22ea8d17eefbac2f6d08.tar.gz coredns-71ee323651ffed5d09aa22ea8d17eefbac2f6d08.tar.zst coredns-71ee323651ffed5d09aa22ea8d17eefbac2f6d08.zip |
plugin/kubernetes: Add upstream @self and loop count (#1484)
* add upstream @self and loop count
* 1st round of feedback
* allow argless upstream
* update test
* readmes
* feedback
Diffstat (limited to 'plugin/etcd/lookup_test.go')
-rw-r--r-- | plugin/etcd/lookup_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/etcd/lookup_test.go b/plugin/etcd/lookup_test.go index a44f0dcd7..b25637fd8 100644 --- a/plugin/etcd/lookup_test.go +++ b/plugin/etcd/lookup_test.go @@ -10,6 +10,7 @@ import ( "github.com/coredns/coredns/plugin/etcd/msg" "github.com/coredns/coredns/plugin/pkg/dnstest" "github.com/coredns/coredns/plugin/pkg/tls" + "github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/proxy" "github.com/coredns/coredns/plugin/test" @@ -227,8 +228,9 @@ func newEtcdPlugin() *Etcd { tlsc, _ := tls.NewTLSConfigFromArgs() client, _ := newEtcdClient(endpoints, tlsc) + p := proxy.NewLookup([]string{"8.8.8.8:53"}) return &Etcd{ - Proxy: proxy.NewLookup([]string{"8.8.8.8:53"}), + Upstream: upstream.Upstream{Forward: &p}, PathPrefix: "skydns", Ctx: context.Background(), Zones: []string{"skydns.test.", "skydns_extra.test.", "in-addr.arpa."}, |