Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: etcd provider name. #6212

Merged
merged 1 commit into from Jan 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/provider/kv/kv.go
Expand Up @@ -43,7 +43,7 @@ func (p *Provider) SetDefaults() {

// Init the provider
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.name = name
Expand All @@ -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.
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)

Expand Down Expand Up @@ -122,7 +122,7 @@ func (p *Provider) watchKv(ctx context.Context, configurationChan chan<- dynamic

if configuration != nil {
configurationChan <- dynamic.Message{
ProviderName: string(p.storeType),
ProviderName: p.name,
Configuration: configuration,
}
}
Expand Down