noderesources

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GpuModelFitName = names.GpuModelFitName

Variables

This section is empty.

Functions

func NewGpuModelFit

func NewGpuModelFit() (framework.Plugin, error)

Types

type GpuModelFit

type GpuModelFit struct {
}

GpuModelFit is a plugin that checks if a node has sufficient gpu with model requested.

func (*GpuModelFit) Filter

func (f *GpuModelFit) Filter(ctx context.Context, pod *corev1.Pod, node string) (status *framework.Status)

func (*GpuModelFit) Name

func (f *GpuModelFit) Name() string

func (*GpuModelFit) Score

func (f *GpuModelFit) Score(ctx context.Context, pod *corev1.Pod, node string) (score int64, status *framework.Status)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL