Skip non-bucket dns entry (#7699)

Fixes #7697
master
Harshavardhana 6 years ago committed by GitHub
parent 7e4c9a9e1e
commit 7906f464fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 // /skydns/net/miniocloud/10.0.0.1 that may exist as
// dns entry for the server (rather than the bucket // dns entry for the server (rather than the bucket
// itself). // itself).
if srvRecord.Key == "" { if srvRecord.Key == "" || srvRecord.Key == etcdPathSeparator {
continue continue
} }

Loading…
Cancel
Save