@@ -368,8 +368,6 @@ func (r *Reconciler) reconcileDelete(ctx context.Context, cluster *clusterv1.Clu
368
368
// After node draining is completed, and if isNodeVolumeDetachingAllowed returns True, make sure all
369
369
// volumes are detached before proceeding to delete the Node.
370
370
if r .isNodeVolumeDetachingAllowed (m ) {
371
- log .Info ("Waiting for node volumes to be detached" , "Node" , klog .KRef ("" , m .Status .NodeRef .Name ))
372
-
373
371
// The VolumeDetachSucceededCondition never exists before we wait for volume detachment for the first time,
374
372
// so its transition time can be used to record the first time we wait for volume detachment.
375
373
// This `if` condition prevents the transition time to be changed more than once.
@@ -412,10 +410,16 @@ func (r *Reconciler) reconcileDelete(ctx context.Context, cluster *clusterv1.Clu
412
410
}
413
411
414
412
if ok , err := r .reconcileDeleteInfrastructure (ctx , m ); ! ok || err != nil {
413
+ if err == nil {
414
+ log .Info ("Waiting for infrastructure to be deleted" , "Infrastructure" , klog .KRef ("" , m .Spec .InfrastructureRef .Name ))
415
+ }
415
416
return ctrl.Result {}, err
416
417
}
417
418
418
419
if ok , err := r .reconcileDeleteBootstrap (ctx , m ); ! ok || err != nil {
420
+ if err == nil {
421
+ log .Info ("Waiting for bootstrap to be deleted" , "Bootstrap" , klog .KRef ("" , m .Spec .Bootstrap .ConfigRef .Name ))
422
+ }
419
423
return ctrl.Result {}, err
420
424
}
421
425
0 commit comments