mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-29 01:04:15 -04:00 
			
		
		
		
	mw/federation: add federation back as separate mw for k8s (#929)
* mw/federaration This PR add the federation back as a middleware to keep it more contained from the main kubernetes code. It also makes parseRequest less import and pushes this functionlity down in the k.Entries. This minimizes (or tries to) the importance for the qtype in the query. In the end the qtype checking should only happen in ServeDNS - but for k8s this might proof difficult. Numerous other cleanup in code and kubernetes tests. * up test coverage
This commit is contained in:
		| @@ -8,8 +8,8 @@ import ( | ||||
| 	"k8s.io/client-go/1.5/pkg/api" | ||||
| ) | ||||
|  | ||||
| func isDefaultNS(name string, r recordRequest) bool { | ||||
| 	return strings.Index(name, defaultNSName) == 0 && strings.Index(name, r.zone) == len(defaultNSName) | ||||
| func isDefaultNS(name, zone string) bool { | ||||
| 	return strings.Index(name, defaultNSName) == 0 && strings.Index(name, zone) == len(defaultNSName) | ||||
| } | ||||
|  | ||||
| func (k *Kubernetes) nsAddr() *dns.A { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user