Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#11487 from chrischdi/pr-machine-ho…
Browse files Browse the repository at this point in the history
…oks-deterministic

🌱 machine: sort list of hooks for stable condition messages
  • Loading branch information
k8s-ci-robot authored Nov 27, 2024
2 parents 17adbb5 + 3bf65b7 commit 3b38f5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/controllers/machine/machine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ func (r *Reconciler) reconcileDelete(ctx context.Context, s *scope) (ctrl.Result
hooks = append(hooks, key)
}
}
slices.Sort(hooks)
log.Info("Waiting for pre-terminate hooks to succeed", "hooks", strings.Join(hooks, ","))
conditions.MarkFalse(m, clusterv1.PreTerminateDeleteHookSucceededCondition, clusterv1.WaitingExternalHookReason, clusterv1.ConditionSeverityInfo, "")
s.deletingReason = clusterv1.MachineDeletingWaitingForPreTerminateHookV1Beta2Reason
Expand Down

0 comments on commit 3b38f5d

Please sign in to comment.