Skip to content

Commit 598eac9

Browse files
committed
predicate follow up PR to remove the check from Reconcile func
Signed-off-by: Nir Rozenbaum <[email protected]>
1 parent 7ed54a4 commit 598eac9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/epp/controller/inferencemodel_reconciler.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ type InferenceModelReconciler struct {
4343
}
4444

4545
func (c *InferenceModelReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
46-
if req.Namespace != c.PoolNamespacedName.Namespace {
47-
return ctrl.Result{}, nil
48-
}
49-
logger := log.FromContext(ctx).V(logutil.DEFAULT).WithValues("inferenceModel", req.Name)
46+
logger := log.FromContext(ctx).V(logutil.DEFAULT).WithValues("inferenceModel", req.NamespacedName)
5047
ctx = ctrl.LoggerInto(ctx, logger)
5148

5249
logger.Info("Reconciling InferenceModel")

0 commit comments

Comments
 (0)