From 7906f464fd34a8f77ac5ebc2284141e3b202f56a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 28 May 2019 19:13:49 -0700 Subject: [PATCH] Skip non-bucket dns entry (#7699) Fixes #7697 --- pkg/dns/etcd_dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dns/etcd_dns.go b/pkg/dns/etcd_dns.go index ec2e1f02e..20864722c 100644 --- a/pkg/dns/etcd_dns.go +++ b/pkg/dns/etcd_dns.go @@ -130,7 +130,7 @@ func (c *coreDNS) list(key string) ([]SrvRecord, error) { // /skydns/net/miniocloud/10.0.0.1 that may exist as // dns entry for the server (rather than the bucket // itself). - if srvRecord.Key == "" { + if srvRecord.Key == "" || srvRecord.Key == etcdPathSeparator { continue }