Skip to content

Commit e9537d4

Browse files
committed
add PopulateControllerConfig to runner
1 parent 7082f01 commit e9537d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/epp/runner/runner.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ func (r *Runner) Run(ctx context.Context) error {
200200
startCrdReconcilers := opts.EndpointSelector == "" // If endpointSelector is empty, it means it's not in the standalone mode. Then we should start the inferencePool and other CRD Reconciler.
201201
controllerCfg := runserver.NewControllerConfig(startCrdReconcilers)
202202

203+
if err := controllerCfg.PopulateControllerConfig(cfg); err != nil {
204+
setupLog.Error(err, "Failed to populate controller config")
205+
return err
206+
}
207+
203208
ds, err := setupDatastore(ctx, epf, int32(opts.ModelServerMetricsPort), startCrdReconcilers,
204209
opts.PoolName, opts.PoolNamespace, opts.EndpointSelector, opts.EndpointTargetPorts)
205210
if err != nil {

0 commit comments

Comments
 (0)