- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for hasError (0.18 sec)
-
pkg/registry/policy/poddisruptionbudget/strategy_test.go
}, } errs := StatusStrategy.ValidateUpdate(ctx, newPdb, oldPdb) hasErrors := len(errs) > 0 if !tc.validation && hasErrors { t.Errorf("Validation failed when no validation should happen") } if tc.validation && !hasErrors { t.Errorf("Expected validation errors but didn't get any") } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 19.2K 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) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSettingsBuilder.java
} } if (hasErrors(problems)) { throw new SettingsBuilderException("Error building settings", problems); } return new DefaultSettingsBuilderResult(effective, problems); } private boolean hasErrors(List<BuilderProblem> problems) { if (problems != null) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 12K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/DefaultMaven.java
} eventCatapult.fire(ExecutionEvent.Type.ProjectDiscoveryStarted, session, null); Result<? extends ProjectDependencyGraph> graphResult = buildGraph(session); if (graphResult.hasErrors()) { return addExceptionToResult( result, graphResult.getProblems().iterator().next().getException()); } try {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 27.5K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelProblemCollector.java
severities.add(problem.getSeverity()); } } public boolean hasFatalErrors() { return severities.contains(ModelProblem.Severity.FATAL); } public boolean hasErrors() { return severities.contains(ModelProblem.Severity.ERROR) || severities.contains(ModelProblem.Severity.FATAL); } @Override public List<ModelProblem> getProblems() { return problems;
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 6.3K 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/kubelet/status/status_manager.go
defer m.podStatusesLock.RUnlock() // Clean up orphaned versions. if all { for uid := range m.apiStatusVersions { _, hasPod := m.podStatuses[types.UID(uid)] _, hasMirror := mirrorToPod[uid] if !hasPod && !hasMirror { delete(m.apiStatusVersions, uid) } } } // Decide which pods need status updates. for uid, status := range m.podStatuses {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 16:27:19 UTC 2024 - 44.3K 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) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java
&& (version == null || message.contains(version)); } protected boolean hasModelErrors(ModelProblemCollector problems) { return problems.hasErrors(); } protected boolean hasFatalErrors(ModelProblemCollector problems) { return problems.hasFatalErrors(); } ModelProcessor getModelProcessor() {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Jun 07 07:31:02 UTC 2024 - 61.9K bytes - Viewed (0)