Skip to content

Commit b1e2a3e

Browse files
authored
Merge pull request kubernetes-sigs#6865 from enxebre/drop-old-comment
🌱 Fix old comment about filteredMachines
2 parents 5b44326 + c399330 commit b1e2a3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/controllers/machineset/machineset_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ func (r *Reconciler) reconcile(ctx context.Context, cluster *clusterv1.Cluster,
248248
return ctrl.Result{}, errors.Wrap(err, "failed to list machines")
249249
}
250250

251-
// Filter out irrelevant machines (deleting/mismatch labels) and claim orphaned machines.
251+
// Filter out irrelevant machines (i.e. IsControlledBy something else) and claim orphaned machines.
252+
// Machines in deleted state are deliberately not excluded https://github.com/kubernetes-sigs/cluster-api/pull/3434.
252253
filteredMachines := make([]*clusterv1.Machine, 0, len(allMachines.Items))
253254
for idx := range allMachines.Items {
254255
machine := &allMachines.Items[idx]

0 commit comments

Comments
 (0)