Optimize CAPD machine controller to reduce noisy error messages #8086
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.
When implementing #7963 we discoverd that the CAPD machine reconciler is producing a lot of error messages when the APIserver of the workload cluster is not reachable yet. Roughly here: https://github.com/kubernetes-sigs/cluster-api/blob/main/test/infrastructure/docker/internal/controllers/dockermachine_controller.go#L337-L340
We tried to add the following statement above, but this breaks the standalone machine case (covered by the KCP adoption e2e test):
The problem is that in the standalone case we have to set the providerID and only afterwards the ControlPlaneInitialized condition is set to true. So with this statement we're in a deadlock.
Options:
/kind cleanup
The text was updated successfully, but these errors were encountered: