pub struct ReplicaGroup {
pub name: String,
pub replicas: i32,
pub role: KanidmServerRole,
pub primary_node: bool,
pub resources: Option<ResourceRequirements>,
pub node_selector: Option<BTreeMap<String, String>>,
pub affinity: Option<Affinity>,
pub tolerations: Option<Vec<Toleration>>,
pub topology_spread_constraints: Option<Vec<TopologySpreadConstraint>>,
}Fields§
§name: StringThe name of the replica group.
replicas: i32Number of replicas to deploy for a Kanidm replica group.
role: KanidmServerRoleThe Kanidm role of each node in the replica group.
primary_node: boolIf true, the first pod of the StatefulSet will be considered as the primary node. The rest of the nodes are considered as secondary nodes. This means that if database issues occur the content of the primary will take precedence over the rest of the nodes. This is only valid for the WriteReplica role and can only be set to true for one replica group or external replication node. Defaults to false.
resources: Option<ResourceRequirements>Defines the resources requests and limits of the kanidm’ container.
node_selector: Option<BTreeMap<String, String>>Defines on which Nodes the Pods are scheduled.
affinity: Option<Affinity>Defines the Pods’ affinity scheduling rules if specified.
tolerations: Option<Vec<Toleration>>Defines the Pods’ tolerations if specified.
topology_spread_constraints: Option<Vec<TopologySpreadConstraint>>Defines the pod’s topology spread constraints if specified.
Trait Implementations§
Source§impl Clone for ReplicaGroup
impl Clone for ReplicaGroup
Source§fn clone(&self) -> ReplicaGroup
fn clone(&self) -> ReplicaGroup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReplicaGroup
impl Debug for ReplicaGroup
Source§impl Default for ReplicaGroup
impl Default for ReplicaGroup
Source§fn default() -> ReplicaGroup
fn default() -> ReplicaGroup
Source§impl<'de> Deserialize<'de> for ReplicaGroup
impl<'de> Deserialize<'de> for ReplicaGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ReplicaGroup
impl JsonSchema for ReplicaGroup
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ReplicaGroup
impl RefUnwindSafe for ReplicaGroup
impl Send for ReplicaGroup
impl Sync for ReplicaGroup
impl Unpin for ReplicaGroup
impl UnwindSafe for ReplicaGroup
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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