pub struct ClusterClassWorkersMachineDeployments {
    pub class: String,
    pub failure_domain: Option<String>,
    pub machine_health_check: Option<ClusterClassWorkersMachineDeploymentsMachineHealthCheck>,
    pub min_ready_seconds: Option<i32>,
    pub naming_strategy: Option<ClusterClassWorkersMachineDeploymentsNamingStrategy>,
    pub node_deletion_timeout: Option<String>,
    pub node_drain_timeout: Option<String>,
    pub node_volume_detach_timeout: Option<String>,
    pub strategy: Option<ClusterClassWorkersMachineDeploymentsStrategy>,
    pub template: ClusterClassWorkersMachineDeploymentsTemplate,
}Expand description
MachineDeploymentClass serves as a template to define a set of worker nodes of the cluster
provisioned using the ClusterClass.
Fields§
§class: Stringclass denotes a type of worker node present in the cluster, this name MUST be unique within a ClusterClass and can be referenced in the Cluster to create a managed MachineDeployment.
failure_domain: Option<String>failureDomain is the failure domain the machines will be created in. 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 MachineDeploymentClass.
machine_health_check: Option<ClusterClassWorkersMachineDeploymentsMachineHealthCheck>machineHealthCheck defines a MachineHealthCheck for this MachineDeploymentClass.
min_ready_seconds: Option<i32>Minimum number of seconds for which a newly created machine 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 MachineDeploymentClass.
naming_strategy: Option<ClusterClassWorkersMachineDeploymentsNamingStrategy>namingStrategy allows changing the naming pattern used when creating the MachineDeployment.
node_deletion_timeout: Option<String>nodeDeletionTimeout defines how long the controller will attempt to delete the Node that the Machine hosts after the Machine is marked for deletion. A duration of 0 will retry deletion indefinitely. Defaults to 10 seconds. NOTE: This value can be overridden while defining a Cluster.Topology using this MachineDeploymentClass.
node_drain_timeout: Option<String>nodeDrainTimeout is the total amount of time that the controller will spend on draining a node.
The default value is 0, meaning that the node can be drained without any time limitations.
NOTE: NodeDrainTimeout is different from kubectl drain --timeout
NOTE: This value can be overridden while defining a Cluster.Topology using this MachineDeploymentClass.
node_volume_detach_timeout: Option<String>nodeVolumeDetachTimeout is the total amount of time that the controller will spend on waiting for all volumes to be detached. The default value is 0, meaning that the volumes can be detached without any time limitations. NOTE: This value can be overridden while defining a Cluster.Topology using this MachineDeploymentClass.
strategy: Option<ClusterClassWorkersMachineDeploymentsStrategy>The deployment strategy to use to replace existing machines with new ones. NOTE: This value can be overridden while defining a Cluster.Topology using this MachineDeploymentClass.
template: ClusterClassWorkersMachineDeploymentsTemplatetemplate is a local struct containing a collection of templates for creation of MachineDeployment objects representing a set of worker nodes.
Trait Implementations§
Source§impl Clone for ClusterClassWorkersMachineDeployments
 
impl Clone for ClusterClassWorkersMachineDeployments
Source§fn clone(&self) -> ClusterClassWorkersMachineDeployments
 
fn clone(&self) -> ClusterClassWorkersMachineDeployments
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterClassWorkersMachineDeployments
 
impl Default for ClusterClassWorkersMachineDeployments
Source§fn default() -> ClusterClassWorkersMachineDeployments
 
fn default() -> ClusterClassWorkersMachineDeployments
Source§impl<'de> Deserialize<'de> for ClusterClassWorkersMachineDeployments
 
impl<'de> Deserialize<'de> for ClusterClassWorkersMachineDeployments
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 ClusterClassWorkersMachineDeployments
 
impl JsonSchema for ClusterClassWorkersMachineDeployments
Source§fn schema_name() -> String
 
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
 
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
 
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
 
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for ClusterClassWorkersMachineDeployments
 
impl PartialEq for ClusterClassWorkersMachineDeployments
Source§fn eq(&self, other: &ClusterClassWorkersMachineDeployments) -> bool
 
fn eq(&self, other: &ClusterClassWorkersMachineDeployments) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterClassWorkersMachineDeployments
Auto Trait Implementations§
impl Freeze for ClusterClassWorkersMachineDeployments
impl RefUnwindSafe for ClusterClassWorkersMachineDeployments
impl Send for ClusterClassWorkersMachineDeployments
impl Sync for ClusterClassWorkersMachineDeployments
impl Unpin for ClusterClassWorkersMachineDeployments
impl UnwindSafe for ClusterClassWorkersMachineDeployments
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