Skip to content

Commit c6e3049

Browse files
authored
Merge pull request #5974 from bizhao/bizhao/fix-typo
🌱 Fix a typo in remediation.go
2 parents abff417 + 25786b4 commit c6e3049

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controlplane/kubeadm/internal/controllers/remediation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (r *KubeadmControlPlaneReconciler) reconcileUnhealthyMachines(ctx context.C
112112
// The cluster MUST have more than one replica, because this is the smallest cluster size that allows any etcd failure tolerance.
113113
if controlPlane.Machines.Len() <= 1 {
114114
log.Info("A control plane machine needs remediation, but the number of current replicas is less or equal to 1. Skipping remediation", "UnhealthyMachine", machineToBeRemediated.Name, "Replicas", controlPlane.Machines.Len())
115-
conditions.MarkFalse(machineToBeRemediated, clusterv1.MachineOwnerRemediatedCondition, clusterv1.WaitingForRemediationReason, clusterv1.ConditionSeverityWarning, "KCP can't remediate if current replicas are less or equal then 1")
115+
conditions.MarkFalse(machineToBeRemediated, clusterv1.MachineOwnerRemediatedCondition, clusterv1.WaitingForRemediationReason, clusterv1.ConditionSeverityWarning, "KCP can't remediate if current replicas are less or equal to 1")
116116
return ctrl.Result{}, nil
117117
}
118118

controlplane/kubeadm/internal/controllers/remediation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func TestReconcileUnhealthyMachines(t *testing.T) {
130130

131131
g.Expect(ret.IsZero()).To(BeTrue()) // Remediation skipped
132132
g.Expect(err).ToNot(HaveOccurred())
133-
assertMachineCondition(ctx, g, m, clusterv1.MachineOwnerRemediatedCondition, corev1.ConditionFalse, clusterv1.WaitingForRemediationReason, clusterv1.ConditionSeverityWarning, "KCP can't remediate if current replicas are less or equal then 1")
133+
assertMachineCondition(ctx, g, m, clusterv1.MachineOwnerRemediatedCondition, corev1.ConditionFalse, clusterv1.WaitingForRemediationReason, clusterv1.ConditionSeverityWarning, "KCP can't remediate if current replicas are less or equal to 1")
134134

135135
g.Expect(env.Cleanup(ctx, m)).To(Succeed())
136136
})

0 commit comments

Comments
 (0)