pub struct MachineHealthCheckSpec {
pub checks: Option<MachineHealthCheckChecks>,
pub cluster_name: String,
pub remediation: Option<MachineHealthCheckRemediation>,
pub selector: MachineHealthCheckSelector,
}Expand description
spec is the specification of machine health check policy
Fields§
§checks: Option<MachineHealthCheckChecks>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.
cluster_name: StringclusterName is the name of the Cluster this object belongs to.
remediation: Option<MachineHealthCheckRemediation>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.
selector: MachineHealthCheckSelectorselector is a label selector to match machines whose health will be exercised
Trait Implementations§
Source§impl Clone for MachineHealthCheckSpec
impl Clone for MachineHealthCheckSpec
Source§fn clone(&self) -> MachineHealthCheckSpec
fn clone(&self) -> MachineHealthCheckSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MachineHealthCheckSpec
impl Debug for MachineHealthCheckSpec
Source§impl Default for MachineHealthCheckSpec
impl Default for MachineHealthCheckSpec
Source§fn default() -> MachineHealthCheckSpec
fn default() -> MachineHealthCheckSpec
Source§impl<'de> Deserialize<'de> for MachineHealthCheckSpec
impl<'de> Deserialize<'de> for MachineHealthCheckSpec
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 MachineHealthCheckSpec
impl JsonSchema for MachineHealthCheckSpec
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 MachineHealthCheckSpec
impl PartialEq for MachineHealthCheckSpec
Source§impl Serialize for MachineHealthCheckSpec
impl Serialize for MachineHealthCheckSpec
impl StructuralPartialEq for MachineHealthCheckSpec
Auto Trait Implementations§
impl Freeze for MachineHealthCheckSpec
impl RefUnwindSafe for MachineHealthCheckSpec
impl Send for MachineHealthCheckSpec
impl Sync for MachineHealthCheckSpec
impl Unpin for MachineHealthCheckSpec
impl UnsafeUnpin for MachineHealthCheckSpec
impl UnwindSafe for MachineHealthCheckSpec
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