mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
small fix
This commit is contained in:
parent
0a84225dff
commit
371b79fc36
2 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ func (c *Controller) applyGeneratePolicy(log logr.Logger, policyContext engine.P
|
|||
}
|
||||
|
||||
if !processExisting {
|
||||
genResource, err = applyRule(log, c.client, rule, resource, ctx, policy.Name, gr)
|
||||
genResource, err = applyRule(log, c.client, rule, resource, jsonContext, policy.Name, gr)
|
||||
if err != nil {
|
||||
log.Error(err, "failed to apply generate rule", "policy", policy.Name,
|
||||
"rule", rule.Name, "resource", resource.GetName())
|
||||
|
|
|
@ -104,7 +104,7 @@ func (ws *WebhookServer) handleUpdateAndDelete(request *v1beta1.AdmissionRequest
|
|||
}
|
||||
}
|
||||
|
||||
func (ws *WebhookServer) deleteGR(logger logr.Logger, engineResponse response.EngineResponse) {
|
||||
func (ws *WebhookServer) deleteGR(logger logr.Logger, engineResponse *response.EngineResponse) {
|
||||
logger.V(4).Info("querying all generate requests")
|
||||
selector := labels.SelectorFromSet(labels.Set(map[string]string{
|
||||
"generate.kyverno.io/policy-name": engineResponse.PolicyResponse.Policy,
|
||||
|
|
Loading…
Add table
Reference in a new issue