Commit bad135cd authored by DavadDi's avatar DavadDi Committed by corbot[bot]

add opts.initPodCache to avoid panic (#2279)

Automatically submitted.
parent ae7fbf31
......@@ -15,6 +15,17 @@ func (k *Kubernetes) AutoPath(state request.Request) []string {
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()
pod := k.podWithIP(ip)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment