fix: etcd provider name.
This commit is contained in:
parent
c24e74efe3
commit
dce6356d75
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ func (p *Provider) SetDefaults() {
|
||||||
|
|
||||||
// Init the provider
|
// Init the provider
|
||||||
func (p *Provider) Init(storeType store.Backend, name string) error {
|
func (p *Provider) Init(storeType store.Backend, name string) error {
|
||||||
ctx := log.With(context.Background(), log.Str(log.ProviderName, string(storeType)))
|
ctx := log.With(context.Background(), log.Str(log.ProviderName, name))
|
||||||
|
|
||||||
p.storeType = storeType
|
p.storeType = storeType
|
||||||
p.name = name
|
p.name = name
|
||||||
|
@ -60,7 +60,7 @@ func (p *Provider) Init(storeType store.Backend, name string) error {
|
||||||
|
|
||||||
// Provide allows the docker provider to provide configurations to traefik using the given configuration channel.
|
// Provide allows the docker provider to provide configurations to traefik using the given configuration channel.
|
||||||
func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.Pool) error {
|
func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.Pool) error {
|
||||||
ctx := log.With(context.Background(), log.Str(log.ProviderName, string(p.storeType)))
|
ctx := log.With(context.Background(), log.Str(log.ProviderName, p.name))
|
||||||
|
|
||||||
logger := log.FromContext(ctx)
|
logger := log.FromContext(ctx)
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ func (p *Provider) watchKv(ctx context.Context, configurationChan chan<- dynamic
|
||||||
|
|
||||||
if configuration != nil {
|
if configuration != nil {
|
||||||
configurationChan <- dynamic.Message{
|
configurationChan <- dynamic.Message{
|
||||||
ProviderName: string(p.storeType),
|
ProviderName: p.name,
|
||||||
Configuration: configuration,
|
Configuration: configuration,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue