package migration
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/migration"
Index ¶
- Constants
- func ErrorToFrameworkStatus(err error) *framework.Status
- func PredicateResultToFrameworkStatus(reasons []predicates.PredicateFailureReason, err error) *framework.Status
- func PriorityMetadata(state *framework.CycleState) interface{}
- type PrioritiesStateData
Constants ¶
const ( // PrioritiesStateKey is the key in CycleState to PrioritiesStateData PrioritiesStateKey = "priorities" )
Functions ¶
func ErrorToFrameworkStatus ¶
ErrorToFrameworkStatus converts an error to a framework status.
func PredicateResultToFrameworkStatus ¶
func PredicateResultToFrameworkStatus(reasons []predicates.PredicateFailureReason, err error) *framework.Status
PredicateResultToFrameworkStatus converts a predicate result (PredicateFailureReason + error) to a framework status.
func PriorityMetadata ¶
func PriorityMetadata(state *framework.CycleState) interface{}
PriorityMetadata returns priority metadata stored in CycleState.
Types ¶
type PrioritiesStateData ¶
type PrioritiesStateData struct {
Reference interface{}
}
PrioritiesStateData is a pointer to PrioritiesMetadata.
func (*PrioritiesStateData) Clone ¶
func (p *PrioritiesStateData) Clone() framework.StateData
Clone is supposed to make a copy of the data, but since this is just a pointer, we are practically just copying the pointer.
Source Files ¶
utils.go
- Version
- v1.18.0-alpha.1
- Published
- Dec 18, 2019
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 17 seconds ago –
Tools for package owners.