Add KV store providers (dynamic configuration only)
Co-authored-by: Jean-Baptiste Doumenjou <jb.doumenjou@gmail.com>
This commit is contained in:
parent
028683666d
commit
9b9f4be6a4
61 changed files with 5825 additions and 70 deletions
|
@ -53,6 +53,22 @@ func NewProviderAggregator(conf static.Providers) ProviderAggregator {
|
|||
p.quietAddProvider(conf.ConsulCatalog)
|
||||
}
|
||||
|
||||
if conf.Consul != nil {
|
||||
p.quietAddProvider(conf.Consul)
|
||||
}
|
||||
|
||||
if conf.Etcd != nil {
|
||||
p.quietAddProvider(conf.Etcd)
|
||||
}
|
||||
|
||||
if conf.ZooKeeper != nil {
|
||||
p.quietAddProvider(conf.ZooKeeper)
|
||||
}
|
||||
|
||||
if conf.Redis != nil {
|
||||
p.quietAddProvider(conf.Redis)
|
||||
}
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue