mirror of
https://github.com/coredns/coredns.git
synced 2025-12-07 02:45:11 -05:00
committed by
Chris O'Haver
parent
c8fb66f8cc
commit
6ed88fab74
@@ -444,12 +444,9 @@ func (k *Kubernetes) findServices(r recordRequest, zone string) (services []msg.
|
||||
serviceList = k.APIConn.ServiceList()
|
||||
endpointsListFunc = func() []*object.Endpoints { return k.APIConn.EndpointsList() }
|
||||
} else {
|
||||
key := object.ServiceKey(r.namespace, r.service)
|
||||
s := k.APIConn.SvcIndex(key)
|
||||
if s != nil {
|
||||
serviceList = append(serviceList, s)
|
||||
}
|
||||
endpointsListFunc = func() []*object.Endpoints { return []*object.Endpoints{k.APIConn.EpIndex(key)} }
|
||||
idx := object.ServiceKey(r.service, r.namespace)
|
||||
serviceList = k.APIConn.SvcIndex(idx)
|
||||
endpointsListFunc = func() []*object.Endpoints { return k.APIConn.EpIndex(idx) }
|
||||
}
|
||||
|
||||
for _, svc := range serviceList {
|
||||
|
||||
Reference in New Issue
Block a user