reqd changes (#1522)
This commit is contained in:
parent
bd156dc9d1
commit
ca5097ca13
6 changed files with 187 additions and 169 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
// AutoPath implements the AutoPathFunc call from the autopath plugin.
|
||||
// It returns a per-query search path or nil indicating no searchpathing should happen.
|
||||
func (k *Kubernetes) AutoPath(state request.Request) []string {
|
||||
// Check if the query falls in a zone we are actually authoriative for and thus if we want autopath.
|
||||
// Check if the query falls in a zone we are actually authoritative for and thus if we want autopath.
|
||||
zone := plugin.Zones(k.Zones).Matches(state.Name())
|
||||
if zone == "" {
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue