diff --git a/cmd/config/etcd/dns/etcd_dns.go b/cmd/config/etcd/dns/etcd_dns.go index ba0f6b0e9..58ee48fc3 100644 --- a/cmd/config/etcd/dns/etcd_dns.go +++ b/cmd/config/etcd/dns/etcd_dns.go @@ -117,9 +117,6 @@ func (c *CoreDNS) list(key string) ([]SrvRecord, error) { if err != nil { return nil, err } - if r.Count == 0 { - return nil, ErrNoEntriesFound - } } var srvRecords []SrvRecord @@ -143,9 +140,6 @@ func (c *CoreDNS) list(key string) ([]SrvRecord, error) { srvRecords = append(srvRecords, srvRecord) } - if len(srvRecords) == 0 { - return nil, ErrNoEntriesFound - } sort.Slice(srvRecords, func(i int, j int) bool { return srvRecords[i].Key < srvRecords[j].Key })