1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 18:15:48 +00:00

Added log for updated generated resource

This commit is contained in:
evalsocket 2020-11-29 20:04:55 +05:30
parent ec95724e97
commit ecc77dab96

View file

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