mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-08 10:04:25 +00:00
Merge pull request #1333 from evalsocket/fix-1291
Added logging for synchronize events for generate rules
This commit is contained in:
commit
756aee3399
1 changed files with 3 additions and 3 deletions
|
@ -382,7 +382,7 @@ func applyRule(log logr.Logger, client *dclient.Client, rule kyverno.Rule, resou
|
|||
logger.Error(err, "updating existing resource")
|
||||
return noGenResource, err
|
||||
}
|
||||
logger.V(4).Info("updated generated resource")
|
||||
logger.V(2).Info("updated generated resource")
|
||||
} else {
|
||||
resource := &unstructured.Unstructured{}
|
||||
resource.SetUnstructuredContent(rdata)
|
||||
|
@ -392,10 +392,10 @@ func applyRule(log logr.Logger, client *dclient.Client, rule kyverno.Rule, resou
|
|||
logger.Error(err, "updating existing resource")
|
||||
return noGenResource, err
|
||||
}
|
||||
logger.V(4).Info("updated geneated resource")
|
||||
logger.V(2).Info("updated generated resource")
|
||||
}
|
||||
|
||||
logger.V(4).Info("Synchronize resource is disabled")
|
||||
logger.V(2).Info("Synchronize resource is disabled")
|
||||
}
|
||||
return newGenResource, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue