Skip to content

Commit cf38757

Browse files
committed
remove unnecessary deletion
Signed-off-by: sivchari <[email protected]>
1 parent a827815 commit cf38757

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

internal/controllers/clusterclass/clusterclass_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Re
9595
if apierrors.IsNotFound(err) {
9696
return ctrl.Result{}, nil
9797
}
98+
// Error reading the object - requeue the request.
9899
return ctrl.Result{}, err
99100
}
100101

internal/controllers/machine/machine_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Re
160160
// For additional cleanup logic use finalizers.
161161
return ctrl.Result{}, nil
162162
}
163+
164+
// Error reading the object - requeue the request.
163165
return ctrl.Result{}, err
164166
}
165167

internal/controllers/machinedeployment/machinedeployment_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Re
118118
// For additional cleanup logic use finalizers.
119119
return ctrl.Result{}, nil
120120
}
121+
// Error reading the object - requeue the request.
121122
return ctrl.Result{}, err
122123
}
123124

internal/controllers/machinehealthcheck/machinehealthcheck_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Re
124124
// For additional cleanup logic use finalizers.
125125
return ctrl.Result{}, nil
126126
}
127+
128+
// Error reading the object - requeue the request.
127129
return ctrl.Result{}, err
128130
}
129131

internal/controllers/machineset/machineset_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Re
140140
// For additional cleanup logic use finalizers.
141141
return ctrl.Result{}, nil
142142
}
143+
// Error reading the object - requeue the request.
143144
return ctrl.Result{}, err
144145
}
145146

0 commit comments

Comments
 (0)