Skip to content

Can the Event::Init be received during application work (not start up)? How to be sure store doesn't have an outdated data? #1732

Answered by nightkr
artsiomkaltovich asked this question in Q&A
Discussion options

You must be logged in to vote

From my understanding of the source code, Init will delete old data—is that correct? I apply every event to the writer, so I assume that should handle it at least in my case, shoundn't it?

Yes.

Could you clarify about "maintain your store manually"?

For example, if you build up your own HashMap<ObjectRef<K>, K> (or do something else entirely with the objects) instead of using kube-rs' Store/reflector system.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@artsiomkaltovich
Comment options

@nightkr
Comment options

Answer selected by artsiomkaltovich
@artsiomkaltovich
Comment options

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