Pod insecure2 (#479)

* return servfail for pod rqsts when pods disabled

* Add integration test for disabled pod mode
This commit is contained in:
Chris O'Haver
2017-01-12 11:57:00 -05:00
committed by John Belamaric
parent 2e366459c5
commit b6a2a5aeaa
2 changed files with 46 additions and 23 deletions

View File

@@ -341,7 +341,7 @@ func ipFromPodName(podname string) string {
func (k *Kubernetes) findPods(namespace, podname string) (pods []pod, err error) {
if k.PodMode == PodModeDisabled {
return pods, nil
return pods, errors.New("pod records disabled")
}
var ip string