parent
ae7fbf31d6
commit
bad135cdc5
1 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue