fix: allow updated domain names in federation (#11365)

additionally also disallow overlapping domain names
This commit is contained in:
Harshavardhana
2021-01-28 11:44:48 -08:00
committed by GitHub
parent e79829b5b3
commit 6cd255d516
7 changed files with 123 additions and 59 deletions

View File

@@ -354,7 +354,9 @@ func (web *webAPIHandlers) ListBuckets(r *http.Request, args *WebGenericArgs, re
// If etcd, dns federation configured list buckets from etcd.
if globalDNSConfig != nil && globalBucketFederation {
dnsBuckets, err := globalDNSConfig.List()
if err != nil && err != dns.ErrNoEntriesFound {
if err != nil && !IsErrIgnored(err,
dns.ErrNoEntriesFound,
dns.ErrDomainMissing) {
return toJSONError(ctx, err)
}
for _, dnsRecords := range dnsBuckets {