1
0
Fork 0
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:
Charles-Edouard Brétéché 2023-09-01 14:32:13 +02:00 committed by GitHub
parent 2050a53c38
commit 1ccd838124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {