Patch UID in error causing infinite reconcile #7337
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
In the Topology Reconciler's patching logic
applyPatchesToRequest
returns an error which includes the Patch UID if the patch fails. If a patch is misspecified (i.e. always errors in this function) this error gets added to a TopologyReconciled condition on the Cluster object. The result isinfinite
reconciles i.e. no exponential backoff if this error occurs, similar to the issue in #5945.The solution to this is to either remove the UID from the error or to log and return the error seperately, similar to #7295
cluster-api/internal/controllers/topology/cluster/patches/engine.go
Line 293 in 1280aca
/kind bug
/cc @sbueringer
The text was updated successfully, but these errors were encountered: