k8s/autopath: Add CNAMES (#771)

* Add unit tests & cnames

* more progress

* fix

* next mw dependent unit tests

* add tests for OnNXDOMAIN

* Add AAAA and ndots unit tests; fix request.NewWithQuestion

* Correct default value in README

* add CNAMEs to readme

* review

* fix autopath examples

* fix and test CNAME response order
This commit is contained in:
Chris O'Haver 2017-07-11 18:05:32 -04:00 committed by John Belamaric
parent 0049230a93
commit 8495e48297
7 changed files with 586 additions and 28 deletions

View file

@ -59,6 +59,7 @@ func kubernetesParse(c *caddy.Controller) (*Kubernetes, error) {
ResyncPeriod: defaultResyncPeriod,
interfaceAddrs: &interfaceAddrs{},
PodMode: PodModeDisabled,
Proxy: proxy.Proxy{},
}
for c.Next() {
@ -244,5 +245,5 @@ const (
defaultPodMode = PodModeDisabled
defautNdots = 0
defaultResolvConfFile = "/etc/resolv.conf"
defaultOnNXDOMAIN = dns.RcodeServerFailure
defaultOnNXDOMAIN = dns.RcodeSuccess
)