forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging dra: use MutationCache in controller
Directly after modifying a ResourceClaim in the apiserver, the locally cached copy is outdated until the informer receives the update. If any operation looks at the claim during that time frame, it will act based on stale information. For example, it might try to allocate again. If that works because of idempotency, then the following update operation fails with a conflict error. This is harmless, but leads to confusing log output. It can be avoided by keeping a copy of the updated claim and using that instead of the one from the informer cache.
- Loading branch information
Showing
2 changed files
with
54 additions
and
12 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