Documentation ¶
Index ¶
- Constants
- func NewAllocatable(_ context.Context, allocArgs runtime.Object, h framework.Handle) (framework.Plugin, error)
- type Allocatable
- func (alloc *Allocatable) Name() string
- func (alloc *Allocatable) NormalizeScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, ...) *framework.Status
- func (alloc *Allocatable) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
- func (alloc *Allocatable) ScoreExtensions() framework.ScoreExtensions
Constants ¶
View Source
const AllocatableName = "NodeResourcesAllocatable"
AllocatableName is the name of the plugin used in the Registry and configurations.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Allocatable ¶
type Allocatable struct {
// contains filtered or unexported fields
}
Allocatable is a score plugin that favors nodes based on their allocatable resources.
func (*Allocatable) Name ¶
func (alloc *Allocatable) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*Allocatable) NormalizeScore ¶
func (alloc *Allocatable) NormalizeScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, scores framework.NodeScoreList) *framework.Status
NormalizeScore invoked after scoring all nodes.
func (*Allocatable) Score ¶
func (alloc *Allocatable) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
Score invoked at the score extension point.
func (*Allocatable) ScoreExtensions ¶
func (alloc *Allocatable) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.