mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
mw/kubernetes: autopath refactors (#850)
Factor out as much of autopath into a subpackage as possible right now. apw.Sent is not needed, we should see this from the rcode returned by the middleware. See #852 on why this was needed. Disable the tests for now as to not break the main build.
This commit is contained in:
@@ -660,14 +660,6 @@ func localPodIP() net.IP {
|
||||
return nil
|
||||
}
|
||||
|
||||
func splitSearch(zone, question, namespace string) (name, search string, ok bool) {
|
||||
search = strings.Join([]string{namespace, Svc, zone}, ".")
|
||||
if dns.IsSubDomain(search, question) {
|
||||
return question[:len(question)-len(search)-1], search, true
|
||||
}
|
||||
return "", "", false
|
||||
}
|
||||
|
||||
const (
|
||||
// Svc is the DNS schema for kubernetes services
|
||||
Svc = "svc"
|
||||
|
||||
Reference in New Issue
Block a user