diff --git a/controllers/reclaimspacejob_controller.go b/controllers/reclaimspacejob_controller.go index 86fc23fbc..c005fe1b2 100644 --- a/controllers/reclaimspacejob_controller.go +++ b/controllers/reclaimspacejob_controller.go @@ -376,6 +376,11 @@ func (r *ReclaimSpaceJobReconciler) nodeReclaimSpace( ctx context.Context, logger *logr.Logger, target *targetDetails) (bool, *int64, error) { + if target.nodeID == "" { + logger.Info("NodeID not found, skipping node reclaimspace") + + return false, nil, nil + } clientName, nodeClient := r.getRSClientWithCap( target.driverName, target.nodeID,