aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/autopath.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/kubernetes/autopath.go')
-rw-r--r--plugin/kubernetes/autopath.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugin/kubernetes/autopath.go b/plugin/kubernetes/autopath.go
index 71506ee3d..06bde0a69 100644
--- a/plugin/kubernetes/autopath.go
+++ b/plugin/kubernetes/autopath.go
@@ -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)