pub struct ClusterClassWorkersMachineDeployments {
pub bootstrap: ClusterClassWorkersMachineDeploymentsBootstrap,
pub class: String,
pub deletion: Option<ClusterClassWorkersMachineDeploymentsDeletion>,
pub failure_domain: Option<String>,
pub health_check: Option<ClusterClassWorkersMachineDeploymentsHealthCheck>,
pub infrastructure: ClusterClassWorkersMachineDeploymentsInfrastructure,
pub metadata: Option<ClusterClassWorkersMachineDeploymentsMetadata>,
pub min_ready_seconds: Option<i32>,
pub naming: Option<ClusterClassWorkersMachineDeploymentsNaming>,
pub readiness_gates: Option<Vec<ClusterClassWorkersMachineDeploymentsReadinessGates>>,
pub rollout: Option<ClusterClassWorkersMachineDeploymentsRollout>,
}Expand description
MachineDeploymentClass serves as a template to define a set of worker nodes of the cluster
provisioned using the ClusterClass.
Fields§
§bootstrap: ClusterClassWorkersMachineDeploymentsBootstrapbootstrap contains the bootstrap template reference to be used for the creation of worker Machines.
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.
deletion: Option<ClusterClassWorkersMachineDeploymentsDeletion>deletion contains configuration options for Machine deletion.
failure_domain: Option<String>failureDomain is the failure domain the machines will be created in. Must match the name of a FailureDomain from the Cluster status. NOTE: This value can be overridden while defining a Cluster.Topology using this MachineDeploymentClass.
health_check: Option<ClusterClassWorkersMachineDeploymentsHealthCheck>healthCheck defines a MachineHealthCheck for this MachineDeploymentClass.
infrastructure: ClusterClassWorkersMachineDeploymentsInfrastructureinfrastructure contains the infrastructure template reference to be used for the creation of worker Machines.
metadata: Option<ClusterClassWorkersMachineDeploymentsMetadata>metadata is the metadata applied to the MachineDeployment and the machines of the MachineDeployment. 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 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: Option<ClusterClassWorkersMachineDeploymentsNaming>naming allows changing the naming pattern used when creating the MachineDeployment.
readiness_gates: Option<Vec<ClusterClassWorkersMachineDeploymentsReadinessGates>>readinessGates specifies additional conditions to include when evaluating Machine Ready condition.
This field can be used e.g. to instruct the machine controller to include in the computation for Machine’s ready computation a condition, managed by an external controllers, reporting the status of special software/hardware installed on the Machine.
NOTE: If a Cluster defines a custom list of readinessGates for a MachineDeployment using this MachineDeploymentClass, such list overrides readinessGates defined in this field.
rollout: Option<ClusterClassWorkersMachineDeploymentsRollout>rollout allows you to configure the behaviour of rolling updates to the MachineDeployment Machines. It allows you to define the strategy used during rolling replacements.
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_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 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