middleware/authpath: Fix return from k8s mw (#871)

* middleware/authpath: Fix return from k8s mw

Return the correct search path from the kubernetes' AutoPath function.
Based on preliminary discussion in #870

* PodWithIP can be private

Fix and add docs to functions.

* CR: remove the error from AutoPathFunc
This commit is contained in:
Miek Gieben 2017-08-10 19:26:31 +01:00 committed by GitHub
parent 3654361be2
commit 6cc3f47d46
4 changed files with 46 additions and 20 deletions

View file

@ -47,6 +47,7 @@ type Kubernetes struct {
Fallthrough bool
interfaceAddrsFunc func() net.IP
autoPathSearch []string // Local search path from /etc/resolv.conf. Needed for autopath.
}
const (