Struct kube_runtime::controller::Action
source · pub struct Action { /* private fields */ }
Expand description
Results of the reconciliation attempt
Implementations§
source§impl Action
impl Action
sourcepub fn requeue(duration: Duration) -> Self
pub fn requeue(duration: Duration) -> Self
Action to the reconciliation at this time even if no external watch triggers hit
This is the best-practice action that ensures eventual consistency of your controller even in the case of missed changes (which can happen).
Watch events are not normally missed, so running this once per hour (Default
) as a fallback is reasonable.
sourcepub fn await_change() -> Self
pub fn await_change() -> Self
Do nothing until a change is detected
This stops the controller periodically reconciling this object until a relevant watch event was detected.
Warning: If you have watch desyncs, it is possible to miss changes entirely. It is therefore not recommended to disable requeuing this way, unless you have frequent changes to the underlying object, or some other hook to retain eventual consistency.
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.