Struct cluster_api_rs::api::capi_clusterclass::ClusterClassWorkersMachineDeploymentsMachineHealthCheck
source · pub struct ClusterClassWorkersMachineDeploymentsMachineHealthCheck {
pub max_unhealthy: Option<IntOrString>,
pub node_startup_timeout: Option<String>,
pub remediation_template: Option<ObjectReference>,
pub unhealthy_conditions: Option<Vec<ClusterClassWorkersMachineDeploymentsMachineHealthCheckUnhealthyConditions>>,
pub unhealthy_range: Option<String>,
}Expand description
MachineHealthCheck defines a MachineHealthCheck for this MachineDeploymentClass.
Fields§
§max_unhealthy: Option<IntOrString>Any further remediation is only allowed if at most “MaxUnhealthy” machines selected by “selector” are not healthy.
node_startup_timeout: Option<String>NodeStartupTimeout allows to set the maximum time for MachineHealthCheck
to consider a Machine unhealthy if a corresponding Node isn’t associated
through a Spec.ProviderID field.
The duration set in this field is compared to the greatest of:
- Cluster’s infrastructure ready condition timestamp (if and when available)
- Control Plane’s initialized condition timestamp (if and when available)
- Machine’s infrastructure ready condition timestamp (if and when available)
- Machine’s metadata creation timestamp
Defaults to 10 minutes. If you wish to disable this feature, set the value explicitly to 0.
remediation_template: Option<ObjectReference>RemediationTemplate is a reference to a remediation template provided by an infrastructure provider.
This field is completely optional, when filled, the MachineHealthCheck controller creates a new object from the template referenced and hands off remediation of the machine to a controller that lives outside of Cluster API.
unhealthy_conditions: Option<Vec<ClusterClassWorkersMachineDeploymentsMachineHealthCheckUnhealthyConditions>>UnhealthyConditions contains a list of the conditions that determine whether a node is considered unhealthy. The conditions are combined in a logical OR, i.e. if any of the conditions is met, the node is unhealthy.
unhealthy_range: Option<String>Any further remediation is only allowed if the number of machines selected by “selector” as not healthy is within the range of “UnhealthyRange”. Takes precedence over MaxUnhealthy. Eg. “[3-5]” - This means that remediation will be allowed only when: (a) there are at least 3 unhealthy machines (and) (b) there are at most 5 unhealthy machines
Trait Implementations§
source§impl Clone for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
impl Clone for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
source§fn clone(&self) -> ClusterClassWorkersMachineDeploymentsMachineHealthCheck
fn clone(&self) -> ClusterClassWorkersMachineDeploymentsMachineHealthCheck
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
impl Default for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
source§fn default() -> ClusterClassWorkersMachineDeploymentsMachineHealthCheck
fn default() -> ClusterClassWorkersMachineDeploymentsMachineHealthCheck
source§impl<'de> Deserialize<'de> for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
impl<'de> Deserialize<'de> for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
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 ClusterClassWorkersMachineDeploymentsMachineHealthCheck
impl JsonSchema for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
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 moreAuto Trait Implementations§
impl Freeze for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
impl RefUnwindSafe for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
impl Send for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
impl Sync for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
impl Unpin for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
impl UnwindSafe for ClusterClassWorkersMachineDeploymentsMachineHealthCheck
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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