You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Reasons that will be used for the OwnerRemediated condition set by MachineHealthCheck on KubeadmControlPlane controlled machines
@@ -201,7 +245,7 @@ const (
201
245
// EtcdMemberHealthy condition and corresponding reasons that will be used for KubeadmControlPlane controlled machines in v1Beta2 API version.
202
246
const (
203
247
// KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition surfaces the status of the etcd member hosted on a KubeadmControlPlane controlled machine.
// KubeadmControlPlaneMachineEtcdMemberNotHealthyV1Beta2Reason surfaces when the etcd member hosted on a KubeadmControlPlane controlled machine is not healthy.
conditions.MarkFalse(unhealthyMachineOwnerRemediated, clusterv1.MachineHealthCheckSucceededCondition, clusterv1.MachineHasFailureReason, clusterv1.ConditionSeverityWarning, "Something is wrong")
78
78
conditions.MarkFalse(unhealthyMachineOwnerRemediated, clusterv1.MachineOwnerRemediatedCondition, clusterv1.WaitingForRemediationReason, clusterv1.ConditionSeverityWarning, "KCP should remediate this issue")
79
79
80
80
t.Run("One unhealthy machine to be remediated by KCP", func(t*testing.T) {
81
81
c:=ControlPlane{
82
82
Machines: collections.FromMachines(
83
-
healthyMachine1, // healthy machine, should be ignored
84
-
healthyMachine2, // healthy machine, should be ignored (the MachineHealthCheckSucceededCondition is true)
83
+
healthyMachineNotProvisioned,// healthy machine, should be ignored
84
+
healthyMachineProvisioned,// healthy machine, should be ignored (the MachineHealthCheckSucceededCondition is true)
85
85
unhealthyMachineNOTOwnerRemediated, // unhealthy machine, but KCP should not remediate it, should be ignored.
0 commit comments