Skip to content

When to use informers vs. an infinite reconcile loop when building an operator? #3717

Answered by shawkins
SoerenHenning asked this question in Q&A
Discussion options

You must be logged in to vote

To reinforce the answer you got over there, the best place to start is on discussions about being edge and level driven - https://www.oreilly.com/library/view/programming-kubernetes/9781492047094/ch01.html

In that view of the world there is level triggering (usually an interval) and edge triggering (an event). Level handling (a full reconcile) and edge handling (processing only what has changed). Edge handling is generally more complicated to implement - you have look at the difference in a resource and determine what changes to make on your primary or dependent resources. Level handling is easier / safer to implement - you simply update all desired state.

The most complex answer is that …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SoerenHenning
Comment options

Answer selected by shawkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants