diff --git a/controllers/machinehealthcheck_targets.go b/controllers/machinehealthcheck_targets.go index a25bf652cb0a..285e87354b09 100644 --- a/controllers/machinehealthcheck_targets.go +++ b/controllers/machinehealthcheck_targets.go @@ -218,7 +218,7 @@ func (r *MachineHealthCheckReconciler) healthCheckTargets(targets []healthCheckT continue } - if t.Machine.DeletionTimestamp == nil { + if t.Machine.DeletionTimestamp.IsZero() { currentHealthy++ } }