Enum kube_runtime::watcher::ListSemantic
source · 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 moresource§impl Debug for ListSemantic
impl Debug for ListSemantic
source§impl Default for ListSemantic
impl Default for ListSemantic
source§fn default() -> ListSemantic
fn default() -> ListSemantic
source§impl PartialEq for ListSemantic
impl PartialEq for ListSemantic
impl StructuralPartialEq for ListSemantic
Auto Trait Implementations§
impl Freeze for ListSemantic
impl RefUnwindSafe for ListSemantic
impl Send for ListSemantic
impl Sync for ListSemantic
impl Unpin for ListSemantic
impl UnwindSafe for ListSemantic
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)