[Bug] Unique host and path ingress policy is blocking updates

Kyverno Version

1.12

Kubernetes Version

1.29

Kubernetes Platform

AKS

Description

I'm refering to https://github.com/kyverno/policies/issues/833

I'm using v1.12.3, and am still facing this issue. Not sure if it was ever resolved? My policy is the stadard one from the documentation: https://kyverno.io/policies/other/unique-ingress-host-and-path/unique-ingress-host-and-path/

Upon editing an existing ingress, I face:

unique-ingress-host-and-path:
  check-host-path-combo: 'validation failure: The Ingress host and path combination
    must be unique across the cluster.'

Do you know if this has ever been fixed and tested?

Steps to reproduce

  1. Create ingress with any host & path combination
  2. Update the same ingress
  3. Save

Expected behavior

Save works, ingress is only colloding with itself, so should be fine.

Screenshots

No response

Kyverno logs

No response

Slack discussion

No response

Troubleshooting

  • I have read and followed the documentation AND the troubleshooting guide.
  • I have searched other issues in this repository and mine is not recorded.