You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
infrastructureDeleted, err:=r.reconcileDeleteInfrastructure(ctx, m)
413
+
iferr!=nil {
415
414
return ctrl.Result{}, err
416
415
}
416
+
if!infrastructureDeleted {
417
+
log.Info("Waiting for infrastructure to be deleted", m.Spec.InfrastructureRef.Kind, klog.KRef(m.Spec.InfrastructureRef.Namespace, m.Spec.InfrastructureRef.Name))
bootstrapDeleted, err:=r.reconcileDeleteBootstrap(ctx, m)
422
+
iferr!=nil {
419
423
return ctrl.Result{}, err
420
424
}
425
+
if!bootstrapDeleted {
426
+
log.Info("Waiting for bootstrap to be deleted", m.Spec.Bootstrap.ConfigRef.Kind, klog.KRef(m.Spec.Bootstrap.ConfigRef.Namespace, m.Spec.Bootstrap.ConfigRef.Name))
427
+
return ctrl.Result{}, nil
428
+
}
421
429
422
430
// We only delete the node after the underlying infrastructure is gone.
0 commit comments