Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterPlugin ¶
type FilterPlugin interface {
Plugin
// Filter is called by the scheduling framework.
Filter(ctx context.Context, pod *corev1.Pod, node string) *Status
}
FilterPlugin is an interface for Filter plugins. These plugins are called at the filter extension point for filtering out hosts that cannot run a pod.
type Framework ¶
type Framework interface {
PluginsRunner
}
type Plugin ¶
type Plugin interface {
Name() string
}
Plugin is the parent type for all the scheduling framework plugins.
type PluginToHostPriorityList ¶
type PluginToHostPriorityList map[string]extenderv1.HostPriorityList
PluginToHostPriorityList declares a map from plugin name to its extenderv1.HostPriorityList.
type PluginsRunner ¶
type ScorePlugin ¶
type ScorePlugin interface {
Plugin
// Score is called on each filtered node. It must return success and an integer
// indicating the rank of the node.
Score(ctx context.Context, pod *corev1.Pod, node string) (int64, *Status)
}
ScorePlugin is an interface that must be implemented by "Score" plugins to rank nodes that passed the filtering phase.
Click to show internal directories.
Click to hide internal directories.