mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
Pod insecure2 (#479)
* return servfail for pod rqsts when pods disabled * Add integration test for disabled pod mode
This commit is contained in:
committed by
John Belamaric
parent
2e366459c5
commit
b6a2a5aeaa
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user