@@ -454,7 +454,9 @@ func (r *Reconciler) reconcileDelete(ctx context.Context, s *scope) (reconcile.R
454
454
s .deletingReason = clusterv1 .ClusterDeletingWaitingForControlPlaneDeletionV1Beta2Reason
455
455
s .deletingMessage = fmt .Sprintf ("Waiting for %s to be deleted" , cluster .Spec .ControlPlaneRef .Kind )
456
456
457
- log .Info ("Cluster still has descendants - need to requeue" , "controlPlaneRef" , cluster .Spec .ControlPlaneRef .Name )
457
+ // We are watching it, will try again when it is deleted.
458
+ ref := cluster .Spec .ControlPlaneRef
459
+ log .Info ("Cluster still has descendants - waiting for control plane deletion" , ref .Kind , klog .KRef (ref .Namespace , ref .Name ))
458
460
return ctrl.Result {}, nil
459
461
}
460
462
}
@@ -492,7 +494,9 @@ func (r *Reconciler) reconcileDelete(ctx context.Context, s *scope) (reconcile.R
492
494
s .deletingReason = clusterv1 .ClusterDeletingWaitingForInfrastructureDeletionV1Beta2Reason
493
495
s .deletingMessage = fmt .Sprintf ("Waiting for %s to be deleted" , cluster .Spec .InfrastructureRef .Kind )
494
496
495
- log .Info ("Cluster still has descendants - need to requeue" , "infrastructureRef" , cluster .Spec .InfrastructureRef .Name )
497
+ // We are watching it, will try again when it is deleted.
498
+ ref := cluster .Spec .InfrastructureRef
499
+ log .Info ("Cluster still has descendants - waiting for infrastructure cluster deletion" , ref .Kind , klog .KRef (ref .Namespace , ref .Name ))
496
500
return ctrl.Result {}, nil
497
501
}
498
502
}
0 commit comments