mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-29 21:03:56 +00:00
Addressed comments
This commit is contained in:
@@ -21,6 +21,14 @@ import (
|
||||
framework "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1"
|
||||
)
|
||||
|
||||
const (
|
||||
// PredicatesStateKey is the key in CycleState to PredicateStateData
|
||||
PredicatesStateKey = "predicates"
|
||||
|
||||
// PrioritiesStateKey is the key in CycleState to PrioritiesStateData
|
||||
PrioritiesStateKey = "priorities"
|
||||
)
|
||||
|
||||
// PredicateResultToFrameworkStatus converts a predicate result (PredicateFailureReason + error)
|
||||
// to a framework status.
|
||||
func PredicateResultToFrameworkStatus(reasons []predicates.PredicateFailureReason, err error) *framework.Status {
|
||||
@@ -48,14 +56,6 @@ func ErrorToFrameworkStatus(err error) *framework.Status {
|
||||
return nil
|
||||
}
|
||||
|
||||
const (
|
||||
// PredicatesStateKey is the key in CycleState to PredicateStateData
|
||||
PredicatesStateKey = "predicates"
|
||||
|
||||
// PrioritiesStateKey is the key in CycleState to PrioritiesStateData
|
||||
PrioritiesStateKey = "priorities"
|
||||
)
|
||||
|
||||
// PredicatesStateData is a pointer to PredicateMetadata. In the normal case, StateData is supposed to
|
||||
// be generated and stored in CycleState by a framework plugin (like a PreFilter pre-computing data for
|
||||
// its corresponding Filter). However, during migration, the scheduler will inject a pointer to
|
||||
|
||||
Reference in New Issue
Block a user