Clarification on Store::wait_until_ready() and Watch Resynchronization #1736
-
Hello, I've tried to answer this by looking at the source code, but I'm not sure I fully understand it. The Does this mean that once the store becomes ready, any future desynchronization won’t change its state? If so, does that make calling For context: I have two watchers monitoring two types of resources—owners and owned. I need to ensure the correct state of owned objects before processing resynchronization for owner objects. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This happens one level above kube/kube-runtime/src/reflector/store.rs Lines 113 to 130 in defa19f The clearing is basically in done on intermediate buffers in the
Yes, and yes. Once a watcher has synchronised (finshed a list/or streaming init) once, it is always considered "ready". This is because the active cache is still available for querying during a desync. During a desync, we are building up a new You shouldn't normally have to think about relists in user code. You might need to explain a bit more if you actually do. |
Beta Was this translation helpful? Give feedback.
This happens one level above
wait_until_ready
inkube/kube-runtime/src/reflector/store.rs
Lines 113 to 130 in defa19f