plugin/k8s_external: Persist tc bit from lookup to client response (#4716)

* persist reponse tc bit from lookup to client

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver
2022-03-25 13:50:23 -04:00
committed by GitHub
parent 27e18e72bc
commit 3df3147f8c
4 changed files with 15 additions and 9 deletions

View File

@@ -55,11 +55,11 @@ func (e *External) Transfer(zone string, serial uint32) (<-chan []dns.RR, error)
if svcs[i].TargetStrip == 0 {
// Add Service A/AAAA records
s := request.Request{Req: &dns.Msg{Question: []dns.Question{{Name: name}}}}
as := e.a(ctx, []msg.Service{svcs[i]}, s)
as, _ := e.a(ctx, []msg.Service{svcs[i]}, s)
if len(as) > 0 {
ch <- as
}
aaaas := e.aaaa(ctx, []msg.Service{svcs[i]}, s)
aaaas, _ := e.aaaa(ctx, []msg.Service{svcs[i]}, s)
if len(aaaas) > 0 {
ch <- aaaas
}