Documentation
¶
Index ¶
- Constants
- func GetNonzeroRequestForResource(resource v1.ResourceName, requests *v1.ResourceList) int64
- func New(_ context.Context, args runtime.Object, handle fwk.Handle) (fwk.Plugin, error)
- type Plugin
- func (s *Plugin) Name() string
- func (s *Plugin) PreScore(ctx context.Context, cycleState fwk.CycleState, pod *v1.Pod, ...) *fwk.Status
- func (s *Plugin) Score(ctx context.Context, state fwk.CycleState, p *v1.Pod, nodeInfo fwk.NodeInfo) (int64, *fwk.Status)
- func (p *Plugin) ScoreExtensions() fwk.ScoreExtensions
- type ResourceAllocationPriority
Constants ¶
View Source
const (
// Name is plugin name
Name = "NodeResourcesFitPlus"
)
Variables ¶
This section is empty.
Functions ¶
func GetNonzeroRequestForResource ¶
func GetNonzeroRequestForResource(resource v1.ResourceName, requests *v1.ResourceList) int64
GetNonzeroRequestForResource returns the default resource request if none is found or what is provided on the request.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) ScoreExtensions ¶
func (p *Plugin) ScoreExtensions() fwk.ScoreExtensions
type ResourceAllocationPriority ¶
type ResourceAllocationPriority struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.