mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
fix: logger calls (#8211)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
2050a53c38
commit
1ccd838124
1 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ func (l *contextLoader) newLoader(
|
|||
ldr := loaders.NewConfigMapLoader(ctx, l.logger, entry, l.cmResolver, jsonContext)
|
||||
return enginecontext.NewDeferredLoader(entry.Name, ldr, l.logger)
|
||||
} else {
|
||||
l.logger.Info("disabled loading of ConfigMap context entry %s", entry.Name)
|
||||
l.logger.Info("disabled loading of ConfigMap context entry", "name", entry.Name)
|
||||
return nil, nil
|
||||
}
|
||||
} else if entry.APICall != nil {
|
||||
|
@ -97,7 +97,7 @@ func (l *contextLoader) newLoader(
|
|||
ldr := loaders.NewAPILoader(ctx, l.logger, entry, jsonContext, jp, client)
|
||||
return enginecontext.NewDeferredLoader(entry.Name, ldr, l.logger)
|
||||
} else {
|
||||
l.logger.Info("disabled loading of APICall context entry %s", entry.Name)
|
||||
l.logger.Info("disabled loading of APICall context entry", "name", entry.Name)
|
||||
return nil, nil
|
||||
}
|
||||
} else if entry.ImageRegistry != nil {
|
||||
|
@ -105,7 +105,7 @@ func (l *contextLoader) newLoader(
|
|||
ldr := loaders.NewImageDataLoader(ctx, l.logger, entry, jsonContext, jp, rclientFactory)
|
||||
return enginecontext.NewDeferredLoader(entry.Name, ldr, l.logger)
|
||||
} else {
|
||||
l.logger.Info("disabled loading of ImageRegistry context entry %s", entry.Name)
|
||||
l.logger.Info("disabled loading of ImageRegistry context entry", "name", entry.Name)
|
||||
return nil, nil
|
||||
}
|
||||
} else if entry.Variable != nil {
|
||||
|
|
Loading…
Reference in a new issue