allow loading some from config and some values from ENVs (#9872)

A regression perhaps introduced in #9851
This commit is contained in:
Harshavardhana
2020-06-18 17:31:56 -07:00
committed by GitHub
parent 85a1956e5c
commit fa13fe2184
3 changed files with 18 additions and 18 deletions

View File

@@ -47,6 +47,11 @@ func newCoreDNSMsg(ip string, port string, ttl uint32, t time.Time) ([]byte, err
})
}
// Close closes the internal etcd client and cannot be used further
func (c *CoreDNS) Close() {
c.etcdClient.Close()
}
// List - Retrieves list of DNS entries for the domain.
func (c *CoreDNS) List() (map[string][]SrvRecord, error) {
var srvRecords = map[string][]SrvRecord{}