Configure controllers to watch ASO resources and queue reconcile requests for the appropriate CAPZ resources #4339
Labels
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
/kind cleanup
What needs cleanup:
Currently, CAPZ doesn't use the "watch" feature of Kubernetes clients to react to changes to ASO resources asynchronously. Instead, CAPZ has been liberally returning reconciliation
Result
s with a definedRequeueAfter
to effectively poll for status. TheseRequeueAfter
values introduce some potential dead time where an ASO resource has been updated but the CAPZ controller is still waiting untilRequeueAfter
to re-reconcile the CAPZ resource. This extra time could be cut down with a watch set up on the ASO resources.Describe the solution you'd like
Configure each controller in its
SetupWithManager
to watch the appropriate ASO resources and enqueue reconcile requests. #4340 would make this fairly straightforward with theOwns()
method of the controller builder.Anything else you would like to add:
One open question: Should CAPZ watch BYO ASO resources and queue requests based on changes to them?
The text was updated successfully, but these errors were encountered: