pub enum ListSemantic {
MostRecent,
Any,
}
Expand description
Configurable list semantics for watcher
relists
Variants§
MostRecent
List calls perform a full quorum read for most recent results
Prefer this if you have strong consistency requirements. Note that this is more taxing for the apiserver and can be less scalable for the cluster.
If you are observing large resource sets (such as congested Controller
cases),
you typically have a delay between the list call completing, and all the events
getting processed. In such cases, it is probably worth picking Any
over MostRecent
,
as your events are not guaranteed to be up-to-date by the time you get to them anyway.
Any
List calls returns cached results from apiserver
This is faster and much less taxing on the apiserver, but can result
in much older results than has previously observed for Restarted
events,
particularly in HA configurations, due to partitions or stale caches.
This option makes the most sense for controller usage where events have some delay between being seen by the runtime, and it being sent to the reconciler.
Trait Implementations§
Source§impl Clone for ListSemantic
impl Clone for ListSemantic
Source§fn clone(&self) -> ListSemantic
fn clone(&self) -> ListSemantic
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more