pub struct ResourceBuilder<'a> { /* private fields */ }Expand description
Builder for generating Kubernetes resources from a RivvenCluster
Implementations§
Source§impl<'a> ResourceBuilder<'a>
impl<'a> ResourceBuilder<'a>
Sourcepub fn new(cluster: &'a RivvenCluster) -> Result<Self>
pub fn new(cluster: &'a RivvenCluster) -> Result<Self>
Create a new resource builder
Sourcepub fn build_statefulset(&self) -> StatefulSet
pub fn build_statefulset(&self) -> StatefulSet
Build the StatefulSet for the Rivven cluster
Sourcepub fn build_headless_service(&self) -> Service
pub fn build_headless_service(&self) -> Service
Build the headless service for pod discovery
Sourcepub fn build_client_service(&self) -> Service
pub fn build_client_service(&self) -> Service
Build the client-facing service
Sourcepub fn build_configmap(&self) -> ConfigMap
pub fn build_configmap(&self) -> ConfigMap
Build ConfigMap for broker configuration
Sourcepub fn build_pdb(&self) -> Option<PodDisruptionBudget>
pub fn build_pdb(&self) -> Option<PodDisruptionBudget>
Build PodDisruptionBudget
Auto Trait Implementations§
impl<'a> Freeze for ResourceBuilder<'a>
impl<'a> RefUnwindSafe for ResourceBuilder<'a>
impl<'a> Send for ResourceBuilder<'a>
impl<'a> Sync for ResourceBuilder<'a>
impl<'a> Unpin for ResourceBuilder<'a>
impl<'a> UnwindSafe for ResourceBuilder<'a>
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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