You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor ClusterExtensionReconciler to improve conflict resolution and data consistency
The error `the object has been modified; please apply your changes to the latest version and try again` occurs when we attempt to update a resource that has changed since it was initially fetched.
These changes ensure that we fetch the current state of the resource just before issuing updates, rather than using the version obtained at the start of reconciliation. Additionally:
- Deep copy the ClusterExtension object before reconciliation to preserve the original state.
- Re-fetch the latest resource version before updating status and finalizers to handle conflicts from concurrent updates.
Closes: operator-framework#1414
0 commit comments