Skip to content

Commit dc95ba5

Browse files
committed
use poolHasSynced
1 parent 46db497 commit dc95ba5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/epp/controller/pod_reconciler.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ type PodReconciler struct {
4343

4444
func (c *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
4545
logger := log.FromContext(ctx)
46-
_, err := c.Datastore.PoolGet()
47-
if err != nil {
48-
logger.V(logutil.TRACE).Info("Skipping reconciling Pod because the InferencePool is not available yet", "error", err)
46+
if !c.Datastore.PoolHasSynced() {
47+
logger.V(logutil.TRACE).Info("Skipping reconciling Pod because the InferencePool is not available yet")
4948
// When the inferencePool is initialized it lists the appropriate pods and populates the datastore, so no need to requeue.
5049
return ctrl.Result{}, nil
5150
}

0 commit comments

Comments
 (0)