1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

Updated the message to the level4log and removed err that originated from ApplyBackgroundChecks. (#7528)

* updated the message to the level4log and removed err that originated from ApplyBackgroundChecks

Signed-off-by: Cheithanya <cheithanya2002@gmail.com>

* Update pkg/policy/policy_controller.go

Signed-off-by: shuting <shutting06@gmail.com>

---------

Signed-off-by: Cheithanya <cheithanya2002@gmail.com>
Signed-off-by: shuting <shutting06@gmail.com>
Co-authored-by: shuting <shutting06@gmail.com>
This commit is contained in:
itsCheithanya 2023-06-14 18:06:26 +05:30 committed by GitHub
parent 1c7d62f9a1
commit 692d419aa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -419,7 +419,7 @@ func (pc *policyController) handleUpdateRequest(ur *kyvernov1beta1.UpdateRequest
for _, ruleResponse := range engineResponse.PolicyResponse.Rules {
if ruleResponse.Status() != engineapi.RuleStatusPass {
pc.log.Error(err, "can not create new UR on policy update", "policy", policy.GetName(), "rule", rule.Name, "rule.Status", ruleResponse.Status())
pc.log.V(4).Info("skip creating URs on policy update", "policy", policy.GetName(), "rule", rule.Name, "rule.Status", ruleResponse.Status())
continue
}