janiussyafiq opened a new pull request, #2847: URL: https://github.com/apache/apisix-ingress-controller/pull/2847
### Type of change: - [x] New feature provided ### What this PR does / why we need it: A resource whose IngressClass does not select this controller is filtered out at the watch predicate, so it is dropped with no log, no event, and no status. Users cannot tell why their resource is never reconciled (see the `ingressClassName` part of #2756). The shared predicate now logs why an object is ignored: at Info level when the resource is effectively orphaned (no `spec.ingressClassName` and no default IngressClass of this controller, or a referenced IngressClass that does not exist), and at `V(1)` when the IngressClass belongs to another controller, so multi-controller clusters are not spammed. Admission behavior is unchanged. ### Pre-submission checklist: - [x] Did you explain what problem does this PR solve? Or what new features have been added? - [x] Have you added corresponding test cases? - [ ] Have you modified the corresponding document? - [x] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix-ingress-controller#community) first** -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
