Skip to content

fix: add Deduplicate rules in webhook configurations

Placeholder Kartik Sharma requested to merge github/fork/ikartiksh/fix into main

Explanation

Fixes a bug where duplicate rules were being generated in the ValidatingWebhookConfiguration and MutatingWebhookConfiguration. This happens when multiple policies match the same resource, leading to inefficient webhook objects.

Related issue

fixes #14072

Milestone of this PR

Documentation (required for features)

My PR contains new or altered behavior to Kyverno.

What type of PR is this

Proposed Changes

Proof Manifests

Checklist

  • I have read the contributing guidelines.
  • I have read the PR documentation guide and followed the process including adding proof manifests to this PR.
  • This is a bug fix and I have added unit tests that prove my fix is effective.
  • This is a feature and I have added CLI tests that are applicable.
  • My PR needs to be cherry picked to a specific release branch which is .
  • My PR contains new or altered behavior to Kyverno and
    • CLI support should be added and my PR doesn't contain that functionality.

Further Comments

Merge request reports

Loading