pub struct ClusterTopologyControlPlaneHealthCheck {
pub checks: Option<ClusterTopologyControlPlaneHealthCheckChecks>,
pub enabled: Option<bool>,
pub remediation: Option<ClusterTopologyControlPlaneHealthCheckRemediation>,
}Expand description
healthCheck allows to enable, disable and override control plane health check configuration from the ClusterClass for this control plane.
Fields§
§checks: Option<ClusterTopologyControlPlaneHealthCheckChecks>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<ClusterTopologyControlPlaneHealthCheckRemediation>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 ClusterTopologyControlPlaneHealthCheck
impl Clone for ClusterTopologyControlPlaneHealthCheck
Source§fn clone(&self) -> ClusterTopologyControlPlaneHealthCheck
fn clone(&self) -> ClusterTopologyControlPlaneHealthCheck
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterTopologyControlPlaneHealthCheck
impl Default for ClusterTopologyControlPlaneHealthCheck
Source§fn default() -> ClusterTopologyControlPlaneHealthCheck
fn default() -> ClusterTopologyControlPlaneHealthCheck
Source§impl<'de> Deserialize<'de> for ClusterTopologyControlPlaneHealthCheck
impl<'de> Deserialize<'de> for ClusterTopologyControlPlaneHealthCheck
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 ClusterTopologyControlPlaneHealthCheck
impl JsonSchema for ClusterTopologyControlPlaneHealthCheck
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 ClusterTopologyControlPlaneHealthCheck
impl PartialEq for ClusterTopologyControlPlaneHealthCheck
Source§fn eq(&self, other: &ClusterTopologyControlPlaneHealthCheck) -> bool
fn eq(&self, other: &ClusterTopologyControlPlaneHealthCheck) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterTopologyControlPlaneHealthCheck
Auto Trait Implementations§
impl Freeze for ClusterTopologyControlPlaneHealthCheck
impl RefUnwindSafe for ClusterTopologyControlPlaneHealthCheck
impl Send for ClusterTopologyControlPlaneHealthCheck
impl Sync for ClusterTopologyControlPlaneHealthCheck
impl Unpin for ClusterTopologyControlPlaneHealthCheck
impl UnwindSafe for ClusterTopologyControlPlaneHealthCheck
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