Skip to content

WorkQueue if watch two update events of the same resource in the short time, it how to enqueue #2469

Closed Answered by camilamacedo86
VictoryAnn asked this question in Support
Discussion options

You must be logged in to vote

First at all, see that the golden rule is that your solutions should be idempotent. Therefore, the order should not matter. Then, by doing idempotent solutions you can trust the reconciliation process. It's designed to handle such scenarios gracefully.

For further details

  • Order of Processing: The controller-runtime's reconciliation mechanism does not guarantee the order of processing when multiple updates to a resource occur rapidly. Especially with multiple workers in play, it's possible for them to pick up the newer event before the older one.
  • Reconciliation: Kubebuilder/controllers designed using controller-runtime follow a level-based approach rather than an edge-based one. The prima…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by camilamacedo86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants