Consider not requeuing for objects that we are also watching #8735
Labels
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What would you like to be added (User Story)?
We have a few places where we are requeuing if external objects are not in the right state (i.e. not ready). As we are also watching those objects it's unnecessary to requeue as well.
I think it should be good for performance to avoid unnecessary requeues (less items in the queue, less reconciles). It also makes the logs less noisy.
I'm aware of the following places, but let's please also audit our code in general:
cluster-api/internal/controllers/machine/machine_controller_phases.go
Line 220 in a639988
reconcileExternal
Let's start with a first PR to remove the requeue's we're already aware of and then do an audit.
Detailed Description
Anything else you would like to add?
No response
Label(s) to be applied
/kind cleanup
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.
The text was updated successfully, but these errors were encountered: