mirror of
https://github.com/coredns/coredns.git
synced 2025-10-30 01:34:21 -04:00
@@ -470,12 +470,10 @@ func (k *Kubernetes) findServices(r recordRequest, zone string) (services []msg.
|
|||||||
serviceList []*object.Service
|
serviceList []*object.Service
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
idx := object.ServiceKey(r.service, r.namespace)
|
idx := object.ServiceKey(r.service, r.namespace)
|
||||||
serviceList = k.APIConn.SvcIndex(idx)
|
serviceList = k.APIConn.SvcIndex(idx)
|
||||||
endpointsListFunc = func() []*object.Endpoints { return k.APIConn.EpIndex(idx) }
|
endpointsListFunc = func() []*object.Endpoints { return k.APIConn.EpIndex(idx) }
|
||||||
|
|
||||||
|
|
||||||
zonePath := msg.Path(zone, coredns)
|
zonePath := msg.Path(zone, coredns)
|
||||||
for _, svc := range serviceList {
|
for _, svc := range serviceList {
|
||||||
if !(match(r.namespace, svc.Namespace) && match(r.service, svc.Name)) {
|
if !(match(r.namespace, svc.Namespace) && match(r.service, svc.Name)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user