Skip to content

Commit

Permalink
Use IsZero for Machine deletion timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Feb 5, 2020
1 parent e1978e6 commit fe2d440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/machinehealthcheck_targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (r *MachineHealthCheckReconciler) healthCheckTargets(targets []healthCheckT
continue
}

if t.Machine.DeletionTimestamp == nil {
if t.Machine.DeletionTimestamp.IsZero() {
currentHealthy++
}
}
Expand Down

0 comments on commit fe2d440

Please sign in to comment.