pub struct ClusterClassControlPlaneHealthCheckChecks {
pub node_startup_timeout_seconds: Option<i32>,
pub unhealthy_machine_conditions: Option<Vec<ClusterClassControlPlaneHealthCheckChecksUnhealthyMachineConditions>>,
pub unhealthy_node_conditions: Option<Vec<ClusterClassControlPlaneHealthCheckChecksUnhealthyNodeConditions>>,
}Expand description
checks are the checks that are used to evaluate if a Machine is healthy.
Independent of this configuration the MachineHealthCheck controller will always
flag Machines with cluster.x-k8s.io/remediate-machine annotation and
Machines with deleted Nodes as unhealthy.
Furthermore, if checks.nodeStartupTimeoutSeconds is not set it is defaulted to 10 minutes and evaluated accordingly.
Fields§
§node_startup_timeout_seconds: Option<i32>nodeStartupTimeoutSeconds 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.
unhealthy_machine_conditions: Option<Vec<ClusterClassControlPlaneHealthCheckChecksUnhealthyMachineConditions>>unhealthyMachineConditions contains a list of the machine conditions that determine whether a machine is considered unhealthy. The conditions are combined in a logical OR, i.e. if any of the conditions is met, the machine is unhealthy.
unhealthy_node_conditions: Option<Vec<ClusterClassControlPlaneHealthCheckChecksUnhealthyNodeConditions>>unhealthyNodeConditions contains a list of 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.
Trait Implementations§
Source§impl Clone for ClusterClassControlPlaneHealthCheckChecks
impl Clone for ClusterClassControlPlaneHealthCheckChecks
Source§fn clone(&self) -> ClusterClassControlPlaneHealthCheckChecks
fn clone(&self) -> ClusterClassControlPlaneHealthCheckChecks
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterClassControlPlaneHealthCheckChecks
impl Default for ClusterClassControlPlaneHealthCheckChecks
Source§fn default() -> ClusterClassControlPlaneHealthCheckChecks
fn default() -> ClusterClassControlPlaneHealthCheckChecks
Source§impl<'de> Deserialize<'de> for ClusterClassControlPlaneHealthCheckChecks
impl<'de> Deserialize<'de> for ClusterClassControlPlaneHealthCheckChecks
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 ClusterClassControlPlaneHealthCheckChecks
impl JsonSchema for ClusterClassControlPlaneHealthCheckChecks
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 ClusterClassControlPlaneHealthCheckChecks
impl PartialEq for ClusterClassControlPlaneHealthCheckChecks
Source§fn eq(&self, other: &ClusterClassControlPlaneHealthCheckChecks) -> bool
fn eq(&self, other: &ClusterClassControlPlaneHealthCheckChecks) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterClassControlPlaneHealthCheckChecks
Auto Trait Implementations§
impl Freeze for ClusterClassControlPlaneHealthCheckChecks
impl RefUnwindSafe for ClusterClassControlPlaneHealthCheckChecks
impl Send for ClusterClassControlPlaneHealthCheckChecks
impl Sync for ClusterClassControlPlaneHealthCheckChecks
impl Unpin for ClusterClassControlPlaneHealthCheckChecks
impl UnwindSafe for ClusterClassControlPlaneHealthCheckChecks
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