auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
This commit is contained in:
parent
fe9ba42590
commit
b40f2a0a44
2 changed files with 2 additions and 4 deletions
|
@ -381,11 +381,11 @@ func TestServeDNS(t *testing.T) {
|
||||||
|
|
||||||
// Before sorting, make sure that CNAMES do not appear after their target records
|
// Before sorting, make sure that CNAMES do not appear after their target records
|
||||||
if err := test.CNAMEOrder(resp); err != nil {
|
if err := test.CNAMEOrder(resp); err != nil {
|
||||||
t.Errorf("Test %d, %v",i, err)
|
t.Errorf("Test %d, %v", i, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := test.SortAndCheck(resp, tc); err != nil {
|
if err := test.SortAndCheck(resp, tc); err != nil {
|
||||||
t.Errorf("Test %d, %v",i, err)
|
t.Errorf("Test %d, %v", i, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue