Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,17 @@ func (r *Reconciler) patchUnhealthyTargets(ctx context.Context, logger logr.Logg
t.Machine,
corev1.EventTypeNormal,
EventMachineMarkedUnhealthy,
"Machine %s has been marked as unhealthy by %s",
klog.KObj(t.Machine),
"Marked as unhealthy by MachineHealthCheck %s",
klog.KObj(t.MHC),
)
// Record event on MachineHealthCheck to track remediation history
r.recorder.Eventf(
m,
corev1.EventTypeNormal,
EventMachineMarkedUnhealthy,
"Observed machine %s is now marked as unhealthy",
klog.KObj(t.Machine),
)
}
return errList
}
Expand Down