pub struct ClusterClassControlPlaneHealthCheck {
pub checks: Option<ClusterClassControlPlaneHealthCheckChecks>,
pub remediation: Option<ClusterClassControlPlaneHealthCheckRemediation>,
}Expand description
healthCheck defines a MachineHealthCheck for this ControlPlaneClass. This field is supported if and only if the ControlPlane provider template referenced above is Machine based and supports setting replicas.
Fields§
§checks: Option<ClusterClassControlPlaneHealthCheckChecks>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.
remediation: Option<ClusterClassControlPlaneHealthCheckRemediation>remediation configures if and how remediations are triggered if a Machine is unhealthy.
If remediation or remediation.triggerIf is not set, remediation will always be triggered for unhealthy Machines.
If 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 ClusterClassControlPlaneHealthCheck
impl Clone for ClusterClassControlPlaneHealthCheck
Source§fn clone(&self) -> ClusterClassControlPlaneHealthCheck
fn clone(&self) -> ClusterClassControlPlaneHealthCheck
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterClassControlPlaneHealthCheck
impl Default for ClusterClassControlPlaneHealthCheck
Source§fn default() -> ClusterClassControlPlaneHealthCheck
fn default() -> ClusterClassControlPlaneHealthCheck
Source§impl<'de> Deserialize<'de> for ClusterClassControlPlaneHealthCheck
impl<'de> Deserialize<'de> for ClusterClassControlPlaneHealthCheck
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 ClusterClassControlPlaneHealthCheck
impl JsonSchema for ClusterClassControlPlaneHealthCheck
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 ClusterClassControlPlaneHealthCheck
impl PartialEq for ClusterClassControlPlaneHealthCheck
Source§fn eq(&self, other: &ClusterClassControlPlaneHealthCheck) -> bool
fn eq(&self, other: &ClusterClassControlPlaneHealthCheck) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterClassControlPlaneHealthCheck
Auto Trait Implementations§
impl Freeze for ClusterClassControlPlaneHealthCheck
impl RefUnwindSafe for ClusterClassControlPlaneHealthCheck
impl Send for ClusterClassControlPlaneHealthCheck
impl Sync for ClusterClassControlPlaneHealthCheck
impl Unpin for ClusterClassControlPlaneHealthCheck
impl UnwindSafe for ClusterClassControlPlaneHealthCheck
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