Skip to content

Commit

Permalink
Merge pull request #125 from jgiannuzzi/scheduler-perf-extender-on-de…
Browse files Browse the repository at this point in the history
…mand

Only start the extender plugin when needed in scheduler-perf
  • Loading branch information
k8s-ci-robot authored Nov 9, 2024
2 parents a5b575b + 951a0fc commit 7f60212
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/e2e/scheduler_perf/scheduler_perf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,11 @@ func runWorkload(ctx context.Context, b *testing.B, tc *testCase, w *workload) [
finalFunc, podInformer, client, dynClient := mustSetupScheduler(ctx, b, cfg, registory)
b.Cleanup(finalFunc)

// start extender
go extender.Start()
defer extender.Shutdown()
// Start extender if needed.
if cfg != nil && len(cfg.Extenders) > 0 {
go extender.Start()
defer extender.Shutdown()
}

var mu sync.Mutex
var dataItems []DataItem
Expand Down

0 comments on commit 7f60212

Please sign in to comment.