- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 81 for asError (0.41 sec)
-
pkg/scheduler/framework/interface_test.go
} if test.status.AsError() == test.expectedAsError { return } if test.status.AsError().Error() != test.expectedAsError.Error() { t.Errorf("expect status.AsError() returns %v, but %v", test.expectedAsError, test.status.AsError()) } }) } } func TestPreFilterResultMerge(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Oct 22 04:41:59 UTC 2023 - 7.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/verifier/DependencyVerifier.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 14:42:50 UTC 2024 - 16.3K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework.go
// https://github.com/kubernetes/kubernetes/issues/119770 returnStatus = s continue } return nil, framework.AsStatus(fmt.Errorf("running PreFilter plugin %q: %w", pl.Name(), s.AsError())).WithPlugin(pl.Name()) } if !r.AllNodes() { pluginsWithNodes = append(pluginsWithNodes, pl.Name()) } result = result.Merge(r) if !result.AllNodes() && len(result.NodeNames) == 0 {
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/defaultbinder/default_binder_test.go
if err != nil { t.Fatal(err) } binder := &DefaultBinder{handle: fh} status := binder.Bind(ctx, nil, testPod, testNode) if got := status.AsError(); (tt.injectErr != nil) != (got != nil) { t.Errorf("got error %q, want %q", got, tt.injectErr) } if diff := cmp.Diff(tt.wantBinding, gotBinding); diff != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 23 02:17:34 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/scheduler/testing/framework/fake_extender.go
err := f.runPredicate(pod, node) if err.IsSuccess() { return []*v1.Pod{}, 0, true, nil } else if err.IsRejected() { return nil, 0, false, nil } else { return nil, 0, false, err.AsError() } } // Otherwise, as a extender support preemption and have cached node info, we will assume cachedNodeNameToInfo is available // and get cached node info by given node name.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 19:07:19 UTC 2024 - 13.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go
if !status.IsSuccess() { return status.AsError() } return nil } addPod := func(api *framework.PodInfo) error { nodeInfo.AddPodInfo(api) status := pl.fh.RunPreFilterExtensionAddPod(ctx, state, pod, api, nodeInfo) if !status.IsSuccess() { return status.AsError() } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 25 19:36:04 UTC 2023 - 12.7K bytes - Viewed (0) -
pkg/scheduler/schedule_one.go
preScoreStatus := fwk.RunPreScorePlugins(ctx, state, pod, nodes) if !preScoreStatus.IsSuccess() { return nil, preScoreStatus.AsError() } // Run the Score plugins. nodesScores, scoreStatus := fwk.RunScorePlugins(ctx, state, pod, nodes) if !scoreStatus.IsSuccess() { return nil, scoreStatus.AsError() } // Additional details logged at level 10 if enabled. loggerVTen := logger.V(10) if loggerVTen.Enabled() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 13:28:08 UTC 2024 - 43.4K bytes - Viewed (0) -
pkg/scheduler/framework/interface.go
code := s.Code() return code == Unschedulable || code == UnschedulableAndUnresolvable || code == Pending } // AsError returns nil if the status is a success, a wait or a skip; otherwise returns an "error" object // with a concatenated message on reasons of the Status. func (s *Status) AsError() error { if s.IsSuccess() || s.IsWait() || s.IsSkip() { return nil } if s.err != nil { return s.err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 35.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
if _, s := p.PreFilter(ctx, cs, tt.preemptor); !s.IsSuccess() { t.Fatal(s.AsError()) } nodeInfo, err := snapshot.Get(tt.nodes[tt.nodeIdx].Name) if err != nil { t.Fatal(err) } if s := p.AddPod(ctx, cs, tt.preemptor, mustNewPodInfo(t, tt.addedPod), nodeInfo); !s.IsSuccess() { t.Fatal(s.AsError()) } state, err := getPreFilterState(cs) if err != nil { t.Fatal(err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 10:42:29 UTC 2024 - 143.1K bytes - Viewed (0) -
pkg/scheduler/framework/preemption/preemption.go
status = framework.AsStatus(fmt.Errorf("expected at least one victim pod on node %q", nodeInfoCopy.Node().Name)) } statusesLock.Lock() if status.Code() == framework.Error { errs = append(errs, status.AsError()) } nodeStatuses[nodeInfoCopy.Node().Name] = status statusesLock.Unlock() } fh.Parallelizer().Until(ctx, len(potentialNodes), checkNode, ev.PluginName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 25.1K bytes - Viewed (0)