Skip to content

Commit 2c1ca03

Browse files
Fix event message to reflect both machine and node condition checking
Signed-off-by: Furkat Gofurov <[email protected]>
1 parent a8266e7 commit 2c1ca03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/controllers/machinehealthcheck/machinehealthcheck_targets.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ const (
4545

4646
// EventMachineMarkedUnhealthy is emitted when machine was successfully marked as unhealthy.
4747
EventMachineMarkedUnhealthy string = "MachineMarkedUnhealthy"
48-
// EventDetectedUnhealthy is emitted in case a node associated with a
49-
// machine was detected unhealthy.
48+
// EventDetectedUnhealthy is emitted in case a machine or its associated
49+
// node was detected unhealthy.
5050
EventDetectedUnhealthy string = "DetectedUnhealthy"
5151
)
5252

@@ -448,7 +448,7 @@ func (r *Reconciler) healthCheckTargets(targets []healthCheckTarget, logger logr
448448
t.Machine,
449449
corev1.EventTypeNormal,
450450
EventDetectedUnhealthy,
451-
"Machine %s has unhealthy Node %s",
451+
"Machine %s (Node %s) is failing machine health check rules and it is likely to go unhealthy",
452452
klog.KObj(t.Machine),
453453
t.nodeName(),
454454
)

0 commit comments

Comments
 (0)