aslitaser opened a new pull request, #2729: URL: https://github.com/apache/apisix-ingress-controller/pull/2729
<!-- Please answer these questions before submitting a pull request --> ### Type of change: - [x] Bugfix ### What this PR does / why we need it: Fixes #2725 `ApisixPluginConfig` and `ApisixUpstream` controllers were missing the `Readier` field and never called `Done()` on the readiness manager. This caused the provider to always wait the full 5-minute hardcoded timeout before starting the sync loop on every restart. **Root cause:** When `registerAPIv2ForReadiness()` registers these CRD types with the readiness manager, it adds all existing resources to a pending state. The `ApisixRouteReconciler` correctly calls `defer r.Readier.Done()` in its `Reconcile()` to mark resources as done, but `ApisixPluginConfigReconciler` and `ApisixUpstreamReconciler` were never wired up with the readiness manager — missing both the struct field and the `Done()` call. **Fix:** - Add `Readier readiness.ReadinessManager` field to both controller structs - Add `defer r.Readier.Done()` at the start of both `Reconcile()` methods - Pass `Readier: readier` when initializing both controllers in `controllers.go` ### Pre-submission checklist: - [x] Did you explain what problem does this PR solve? Or what new features have been added? - [ ] 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]
