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
)