pub struct ClusterTopologyWorkersMachineDeploymentsHealthCheck {
pub checks: Option<ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks>,
pub enabled: Option<bool>,
pub remediation: Option<ClusterTopologyWorkersMachineDeploymentsHealthCheckRemediation>,
}Expand description
healthCheck allows to enable, disable and override MachineDeployment health check configuration from the ClusterClass for this MachineDeployment.
Fields§
§checks: Option<ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks>checks are the checks that are used to evaluate if a Machine is healthy.
If one of checks and remediation fields are set, the system assumes that an healthCheck override is defined, and as a consequence the checks and remediation fields from Cluster will be used instead of the corresponding fields in ClusterClass.
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.
enabled: Option<bool>enabled controls if a MachineHealthCheck should be created for the target machines.
If false: No MachineHealthCheck will be created.
If not set(default): A MachineHealthCheck will be created if it is defined here or in the associated ClusterClass. If no MachineHealthCheck is defined then none will be created.
If true: A MachineHealthCheck is guaranteed to be created. Cluster validation will
block if enable is true and no MachineHealthCheck definition is available.
remediation: Option<ClusterTopologyWorkersMachineDeploymentsHealthCheckRemediation>remediation configures if and how remediations are triggered if a Machine is unhealthy.
If one of checks and remediation fields are set, the system assumes that an healthCheck override is defined, and as a consequence the checks and remediation fields from cluster will be used instead of the corresponding fields in ClusterClass.
If an health check override is defined and remediation or remediation.triggerIf is not set, remediation will always be triggered for unhealthy Machines.
If an health check override is defined and remediation or remediation.templateRef is not set, the OwnerRemediated condition will be set on unhealthy Machines to trigger remediation via the owner of the Machines, for example a MachineSet or a KubeadmControlPlane.
Trait Implementations§
Source§impl Clone for ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl Clone for ClusterTopologyWorkersMachineDeploymentsHealthCheck
Source§fn clone(&self) -> ClusterTopologyWorkersMachineDeploymentsHealthCheck
fn clone(&self) -> ClusterTopologyWorkersMachineDeploymentsHealthCheck
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl Default for ClusterTopologyWorkersMachineDeploymentsHealthCheck
Source§fn default() -> ClusterTopologyWorkersMachineDeploymentsHealthCheck
fn default() -> ClusterTopologyWorkersMachineDeploymentsHealthCheck
Source§impl<'de> Deserialize<'de> for ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl<'de> Deserialize<'de> for ClusterTopologyWorkersMachineDeploymentsHealthCheck
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 ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl JsonSchema for ClusterTopologyWorkersMachineDeploymentsHealthCheck
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 ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl PartialEq for ClusterTopologyWorkersMachineDeploymentsHealthCheck
Source§fn eq(
&self,
other: &ClusterTopologyWorkersMachineDeploymentsHealthCheck,
) -> bool
fn eq( &self, other: &ClusterTopologyWorkersMachineDeploymentsHealthCheck, ) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterTopologyWorkersMachineDeploymentsHealthCheck
Auto Trait Implementations§
impl Freeze for ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl RefUnwindSafe for ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl Send for ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl Sync for ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl Unpin for ClusterTopologyWorkersMachineDeploymentsHealthCheck
impl UnwindSafe for ClusterTopologyWorkersMachineDeploymentsHealthCheck
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