-
Hi! I have a use-case where I'd like to run reconciliation when the annotation of a resource has changed. One naive approach to do this would be to add a simple
However this doesn't work if we don't disable
With the way our reconciler is implemented it always results in an update and thus the Do you have some recommendation on how we could run reconciliation on annotation changes without ending up in some infinite loop? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @rickardb
So usually this is what is avoided, if it is an update that actually does not change the resource it is fine, that would not result in an event. |
Beta Was this translation helpful? Give feedback.
yes, to that is the reason why, it is
observedGeneration
is used in status, rather than time. To not trigger the reconciliation all the time.Also maybe you could reconsider changing the annotation, and putting it into spec?