mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 02:18:15 +00:00
fix: fix the verbosity of reconciling logs in the config controller (#4362)
Signed-off-by: Rodrigo Fior Kuntzer <rodrigo@miro.com> Signed-off-by: Rodrigo Fior Kuntzer <rodrigo@miro.com>
This commit is contained in:
parent
648511383c
commit
8e5f831b07
1 changed files with 3 additions and 1 deletions
|
@ -45,10 +45,12 @@ func (c *controller) Run(stopCh <-chan struct{}) {
|
|||
}
|
||||
|
||||
func (c *controller) reconcile(key, namespace, name string) error {
|
||||
logger.Info("reconciling ...", "key", key, "namespace", namespace, "name", name)
|
||||
logger := logger.WithValues("key", key, "namespace", namespace, "name", name)
|
||||
if namespace != config.KyvernoNamespace() || name != config.KyvernoConfigMapName() {
|
||||
logger.V(4).Info("ignoring ...")
|
||||
return nil
|
||||
}
|
||||
logger.Info("reconciling ...")
|
||||
configMap, err := c.configmapLister.ConfigMaps(namespace).Get(name)
|
||||
if err != nil {
|
||||
if errors.IsNotFound(err) {
|
||||
|
|
Loading…
Add table
Reference in a new issue