- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for PreScore (0.35 sec)
-
pkg/scheduler/framework/runtime/framework.go
} } // Cache metric streams for prescore and score plugins. for i, pl := range f.preScorePlugins { f.preScorePlugins[i] = &instrumentedPreScorePlugin{ PreScorePlugin: f.preScorePlugins[i], metric: metrics.PluginEvaluationTotal.WithLabelValues(pl.Name(), metrics.PreScore, f.profileName), } } for i, pl := range f.scorePlugins {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 60.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go
initialObjects = testCtx.listAll(t) initialObjects = testCtx.updateAPIServer(t, initialObjects, tc.prepare.prescore) status := testCtx.p.PreScore(testCtx.ctx, testCtx.state, tc.pod, potentialNodes) t.Run("prescore", func(t *testing.T) { testCtx.verify(t, tc.want.prescore, initialObjects, nil, status) }) if status.Code() != framework.Success { unschedulable = true } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 61.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/fit_test.go
} var gotPriorities framework.NodeScoreList for _, n := range test.nodes { if test.runPreScore { status := p.(framework.PreScorePlugin).PreScore(ctx, state, test.requestedPod, tf.BuildNodeInfos(test.nodes)) if !status.IsSuccess() { t.Errorf("PreScore is expected to return success, but didn't. Got status: %v", status) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 57.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go
cs := framework.NewCycleState() if s := p.PreScore(ctx, cs, tt.pod, tf.BuildNodeInfos(tt.nodes)); !s.IsSuccess() { t.Fatal(s.AsError()) } got, err := getPreScoreState(cs) if err != nil { t.Fatal(err) } if diff := cmp.Diff(tt.want, got, cmpOpts...); diff != "" { t.Errorf("PodTopologySpread#PreScore() returned (-want, +got):\n%s", diff) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 60K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go
} } return nil, framework.NewStatus(framework.Unschedulable, "still not schedulable") } // PreScore is passed a list of all nodes that would fit the pod. Not all // claims are necessarily allocated yet, so here we can set the SuitableNodes // field for those which are pending. func (pl *dynamicResources) PreScore(ctx context.Context, cs *framework.CycleState, pod *v1.Pod, nodes []*framework.NodeInfo) *framework.Status {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:22:37 UTC 2024 - 75.9K bytes - Viewed (0)