Commit 6f19dda0 authored by John Belamaric's avatar John Belamaric Committed by Miek Gieben

Fix autopath crash when pods verified not enabled (#1099)

parent 284061ee
......@@ -368,6 +368,9 @@ func (dns *dnsControl) ServiceList() []*api.Service {
}
func (dns *dnsControl) PodIndex(ip string) []interface{} {
if dns.podLister.Indexer == nil {
return nil
}
pods, err := dns.podLister.Indexer.ByIndex(podIPIndex, ip)
if err != nil {
return nil
......
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