Replies: 2 comments 8 replies
-
|
Beta Was this translation helpful? Give feedback.
8 replies
-
0.58's |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(I realized I shouldn't be thinking this way, but decided to post anyway because it might be helpful for others to realize the flaw and also interested in any thoughts)
Question For a controller with core object
T
that ownsA
andB
, is there a way to find what triggered itsreconciler
? (T
changed orA
changed orB
changed or time)This question came up when I was implementing a controller with
T
that has status conditions based on each child. I wanted to know what triggered it, soreconciler
can focus on that case. But this is not a good way to think about reconciliation because that specific event may be lost. By not focusing on the trigger and usingrequeue_after: Some(duration)
, the outdated status condition depending onA
can be recovered on reconciliation triggered byB
or time.I understood this as a concept, but didn't realize at first when writing code, probably because of the mindset. I'm used to writing code reacting to specific events.
Beta Was this translation helpful? Give feedback.
All reactions