mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
@@ -15,6 +15,17 @@ func (k *Kubernetes) AutoPath(state request.Request) []string {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cluster.local {
|
||||||
|
// autopath @kubernetes
|
||||||
|
// kubernetes {
|
||||||
|
// pods verified #
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// if pods != verified will cause panic and return SERVFAIL, expect worked as normal without autopath function
|
||||||
|
if !k.opts.initPodCache {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
ip := state.IP()
|
ip := state.IP()
|
||||||
|
|
||||||
pod := k.podWithIP(ip)
|
pod := k.podWithIP(ip)
|
||||||
|
|||||||
Reference in New Issue
Block a user