pub struct ClusterClassWorkersMachinePools {
pub class: String,
pub failure_domains: Option<Vec<String>>,
pub min_ready_seconds: Option<i32>,
pub naming_strategy: Option<ClusterClassWorkersMachinePoolsNamingStrategy>,
pub node_deletion_timeout: Option<String>,
pub node_drain_timeout: Option<String>,
pub node_volume_detach_timeout: Option<String>,
pub template: ClusterClassWorkersMachinePoolsTemplate,
}
Expand description
MachinePoolClass serves as a template to define a pool of worker nodes of the cluster
provisioned using ClusterClass
.
Fields§
§class: String
class 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.
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.
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_strategy: Option<ClusterClassWorkersMachinePoolsNamingStrategy>
namingStrategy allows changing the naming pattern used when creating the MachinePool.
node_deletion_timeout: Option<String>
nodeDeletionTimeout defines how long the controller will attempt to delete the Node that the Machine hosts after the Machine Pool 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 MachinePoolClass.
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 MachinePoolClass.
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 MachinePoolClass.
template: ClusterClassWorkersMachinePoolsTemplate
template is a local struct containing a collection of templates for creation of MachinePools objects representing a pool of worker nodes.
Trait Implementations§
Source§impl Clone for ClusterClassWorkersMachinePools
impl Clone for ClusterClassWorkersMachinePools
Source§fn clone(&self) -> ClusterClassWorkersMachinePools
fn clone(&self) -> ClusterClassWorkersMachinePools
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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_name() -> String
fn schema_name() -> String
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 is_referenceable() -> bool
fn is_referenceable() -> 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 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