pub struct Config { /* private fields */ }
Expand description
Accumulates all options that can be used on a Controller
invocation.
Implementations§
source§impl Config
impl Config
sourcepub fn debounce(self, debounce: Duration) -> Self
pub fn debounce(self, debounce: Duration) -> Self
The debounce duration used to deduplicate reconciliation requests.
When set to a non-zero duration, debouncing is enabled in the scheduler
resulting in trailing edge debouncing of reconciler requests.
This option can help to reduce the amount of unnecessary reconciler calls
when using multiple controller relations, or during rapid phase transitions.
§Warning
This option delays (and keeps delaying) reconcile requests for objects while the object is updated. It can permanently hide updates from your reconciler if set too high on objects that are updated frequently (like nodes).
sourcepub fn concurrency(self, concurrency: u16) -> Self
pub fn concurrency(self, concurrency: u16) -> Self
The number of concurrent reconciliations of that are allowed to run at an given moment.
This can be adjusted to the controller’s needs to increase performance and/or make performance predictable. By default, its 0 meaning the controller runs with unbounded concurrency.
Note that despite concurrency, a controller never schedules concurrent reconciles on the same object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more