pub struct ClusterClassWorkersMachinePools {
pub bootstrap: ClusterClassWorkersMachinePoolsBootstrap,
pub class: String,
pub deletion: Option<ClusterClassWorkersMachinePoolsDeletion>,
pub failure_domains: Option<Vec<String>>,
pub infrastructure: ClusterClassWorkersMachinePoolsInfrastructure,
pub metadata: Option<ClusterClassWorkersMachinePoolsMetadata>,
pub min_ready_seconds: Option<i32>,
pub naming: Option<ClusterClassWorkersMachinePoolsNaming>,
}Expand description
MachinePoolClass serves as a template to define a pool of worker nodes of the cluster
provisioned using ClusterClass.
Fields§
§bootstrap: ClusterClassWorkersMachinePoolsBootstrapbootstrap contains the bootstrap template reference to be used for the creation of the Machines in the MachinePool.
class: Stringclass denotes a type of machine pool present in the cluster, this name MUST be unique within a ClusterClass and can be referenced in the Cluster to create a managed MachinePool.
deletion: Option<ClusterClassWorkersMachinePoolsDeletion>deletion contains configuration options for Machine deletion.
failure_domains: Option<Vec<String>>failureDomains is the list of failure domains the MachinePool should be attached to. Must match a key in the FailureDomains map stored on the cluster object. NOTE: This value can be overridden while defining a Cluster.Topology using this MachinePoolClass.
infrastructure: ClusterClassWorkersMachinePoolsInfrastructureinfrastructure contains the infrastructure template reference to be used for the creation of the MachinePool.
metadata: Option<ClusterClassWorkersMachinePoolsMetadata>metadata is the metadata applied to the MachinePool. At runtime this metadata is merged with the corresponding metadata from the topology.
min_ready_seconds: Option<i32>minReadySeconds is the minimum number of seconds for which a newly created machine pool should be ready. Defaults to 0 (machine will be considered available as soon as it is ready) NOTE: This value can be overridden while defining a Cluster.Topology using this MachinePoolClass.
naming: Option<ClusterClassWorkersMachinePoolsNaming>naming allows changing the naming pattern used when creating the MachinePool.
Trait Implementations§
Source§impl Clone for ClusterClassWorkersMachinePools
impl Clone for ClusterClassWorkersMachinePools
Source§fn clone(&self) -> ClusterClassWorkersMachinePools
fn clone(&self) -> ClusterClassWorkersMachinePools
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterClassWorkersMachinePools
impl Default for ClusterClassWorkersMachinePools
Source§fn default() -> ClusterClassWorkersMachinePools
fn default() -> ClusterClassWorkersMachinePools
Source§impl<'de> Deserialize<'de> for ClusterClassWorkersMachinePools
impl<'de> Deserialize<'de> for ClusterClassWorkersMachinePools
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 ClusterClassWorkersMachinePools
impl JsonSchema for ClusterClassWorkersMachinePools
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 moreSource§impl PartialEq for ClusterClassWorkersMachinePools
impl PartialEq for ClusterClassWorkersMachinePools
Source§fn eq(&self, other: &ClusterClassWorkersMachinePools) -> bool
fn eq(&self, other: &ClusterClassWorkersMachinePools) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterClassWorkersMachinePools
Auto Trait Implementations§
impl Freeze for ClusterClassWorkersMachinePools
impl RefUnwindSafe for ClusterClassWorkersMachinePools
impl Send for ClusterClassWorkersMachinePools
impl Sync for ClusterClassWorkersMachinePools
impl Unpin for ClusterClassWorkersMachinePools
impl UnsafeUnpin for ClusterClassWorkersMachinePools
impl UnwindSafe for ClusterClassWorkersMachinePools
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§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