Skip to content

Commit 3bf65b7

Browse files
committed
machine: sort list of hooks for stable condition messages
1 parent 721b6cf commit 3bf65b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/controllers/machine/machine_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ func (r *Reconciler) reconcileDelete(ctx context.Context, s *scope) (ctrl.Result
563563
hooks = append(hooks, key)
564564
}
565565
}
566+
slices.Sort(hooks)
566567
log.Info("Waiting for pre-terminate hooks to succeed", "hooks", strings.Join(hooks, ","))
567568
conditions.MarkFalse(m, clusterv1.PreTerminateDeleteHookSucceededCondition, clusterv1.WaitingExternalHookReason, clusterv1.ConditionSeverityInfo, "")
568569
s.deletingReason = clusterv1.MachineDeletingWaitingForPreTerminateHookV1Beta2Reason

0 commit comments

Comments
 (0)