@@ -417,7 +417,7 @@ func (r *Reconciler) patchUnhealthyTargets(ctx context.Context, logger logr.Logg
417
417
v1beta2conditions .Set (t .Machine , metav1.Condition {
418
418
Type : clusterv1 .MachineExternallyRemediatedV1Beta2Condition ,
419
419
Status : metav1 .ConditionFalse ,
420
- Reason : clusterv1 .MachineExternallyRemediatedTemplateNotFoundV1Beta2Reason ,
420
+ Reason : clusterv1 .MachineExternallyRemediatedRemediationTemplateNotFoundV1Beta2Reason ,
421
421
Message : fmt .Sprintf ("error retrieving remediation template %s %s" , m .Spec .RemediationTemplate .Kind , klog .KRef (t .Machine .Namespace , m .Spec .RemediationTemplate .Name )),
422
422
})
423
423
errList = append (errList , errors .Wrapf (err , "error retrieving remediation template %v %q for machine %q in namespace %q within cluster %q" , m .Spec .RemediationTemplate .GroupVersionKind (), m .Spec .RemediationTemplate .Name , t .Machine .Name , t .Machine .Namespace , m .Spec .ClusterName ))
@@ -453,8 +453,8 @@ func (r *Reconciler) patchUnhealthyTargets(ctx context.Context, logger logr.Logg
453
453
v1beta2conditions .Set (t .Machine , metav1.Condition {
454
454
Type : clusterv1 .MachineExternallyRemediatedV1Beta2Condition ,
455
455
Status : metav1 .ConditionFalse ,
456
- Reason : clusterv1 .MachineExternallyRemediatedRequestCreationFailedV1Beta2Reason ,
457
- Message : "take a look at the controller logs" ,
456
+ Reason : clusterv1 .MachineExternallyRemediatedRemediationRequestCreationFailedV1Beta2Reason ,
457
+ Message : "Please check controller logs for errors " ,
458
458
})
459
459
errList = append (errList , errors .Wrapf (err , "error creating remediation request for machine %q in namespace %q within cluster %q" , t .Machine .Name , t .Machine .Namespace , t .Machine .Spec .ClusterName ))
460
460
return errList
@@ -463,7 +463,7 @@ func (r *Reconciler) patchUnhealthyTargets(ctx context.Context, logger logr.Logg
463
463
v1beta2conditions .Set (t .Machine , metav1.Condition {
464
464
Type : clusterv1 .MachineExternallyRemediatedV1Beta2Condition ,
465
465
Status : metav1 .ConditionFalse ,
466
- Reason : clusterv1 .MachineExternallyRemediatedWaitingForExternalRemediationV1Beta2Reason ,
466
+ Reason : clusterv1 .MachineExternallyRemediatedWaitingForRemediationV1Beta2Reason ,
467
467
})
468
468
} else {
469
469
logger .Info ("Target has failed health check, marking for remediation" , "target" , t .string (), "reason" , condition .Reason , "message" , condition .Message )
@@ -477,7 +477,7 @@ func (r *Reconciler) patchUnhealthyTargets(ctx context.Context, logger logr.Logg
477
477
v1beta2conditions .Set (t .Machine , metav1.Condition {
478
478
Type : clusterv1 .MachineOwnerRemediatedV1Beta2Condition ,
479
479
Status : metav1 .ConditionFalse ,
480
- Reason : clusterv1 .MachineOwnerRemediatedWaitingForOwnerRemediationV1Beta2Reason ,
480
+ Reason : clusterv1 .MachineOwnerRemediatedWaitingForRemediationV1Beta2Reason ,
481
481
})
482
482
}
483
483
}
0 commit comments