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.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/kubernetes/autopath.go b/plugin/kubernetes/autopath.go
index 33bf401f5..6bca35d39 100644
--- a/plugin/kubernetes/autopath.go
+++ b/plugin/kubernetes/autopath.go
@@ -51,6 +51,9 @@ func (k *Kubernetes) AutoPath(state request.Request) []string {
// podWithIP return the api.Pod for source IP. It returns nil if nothing can be found.
func (k *Kubernetes) podWithIP(ip string) *object.Pod {
+ if k.podMode != podModeVerified {
+ return nil
+ }
ps := k.APIConn.PodIndex(ip)
if len(ps) == 0 {
return nil