Documentation ¶
Index ¶
- func ConfigFromPath(path string) (*scheduler_config.KubeSchedulerConfiguration, error)
- func CreateNodeNameToInfoMap(pods []*apiv1.Pod, nodes []*apiv1.Node) map[string]*framework.NodeInfo
- func GetBypassedSchedulersMap(bypassedSchedulers []string) map[string]bool
- func ResourceToResourceList(r *schedulerframework.Resource) apiv1.ResourceList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFromPath ¶
func ConfigFromPath(path string) (*scheduler_config.KubeSchedulerConfiguration, error)
ConfigFromPath loads scheduler config from a path. TODO(vadasambar): replace code to parse scheduler config with upstream function once https://github.com/kubernetes/kubernetes/pull/119057 is merged
func CreateNodeNameToInfoMap ¶
CreateNodeNameToInfoMap obtains a list of pods and pivots that list into a map where the keys are node names and the values are the aggregated information for that node. Pods waiting lower priority pods preemption (pod.Status.NominatedNodeName is set) are also added to list of pods for a node.
func GetBypassedSchedulersMap ¶
GetBypassedSchedulersMap returns a map of scheduler names that should be bypassed as keys, and values are set to true Also sets "" (empty string) to true if default scheduler is bypassed
func ResourceToResourceList ¶
func ResourceToResourceList(r *schedulerframework.Resource) apiv1.ResourceList
ResourceToResourceList returns a resource list of the resource.
Types ¶
This section is empty.