forked from kubernetes-sigs/cluster-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Correctly handle concurrent updates to ClusterResourceSetBinding
* fix: Correctly handle concurrent updates to ClusterResourceSetBinding The existing code does not do optimistic locking on the CRSBinding via `resourceVersion` and hence concurent updates (patches) overwrite each other, leading to races and inconsistent state of the CRSBinding. This commit fixes that by forcing optimistic locking via the controller-runtime client patch options. The downside to this is that it leads to more reconciles and log output of failed updates, but this is a much better situation than having inconsistent and inaccurate state stored in CRSBinding. * fixup! refactor: Add requested comment re patching spec only
- Loading branch information
1 parent
b0284d8
commit f2e4f3e
Showing
4 changed files
with
73 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters