iluvatar

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IluvatarGPUDevice       = "Iluvatar"
	IluvatarGPUCommonWord   = "Iluvatar"
	IluvatarDeviceSelection = "iluvatar.ai/predicate-gpu-idx-"
	// IluvatarUseUUID is user can use specify Iluvatar device for set Iluvatar UUID.
	IluvatarUseUUID = "iluvatar.ai/use-gpuuuid"
	// IluvatarNoUseUUID is user can not use specify Iluvatar device for set Iluvatar UUID.
	IluvatarNoUseUUID = "iluvatar.ai/nouse-gpuuuid"
)

Variables

View Source
var (
	IluvatarResourceCount  string
	IluvatarResourceMemory string
	IluvatarResourceCores  string
)

Functions

func ParseConfig

func ParseConfig(fs *flag.FlagSet)

Types

type IluvatarDevices

type IluvatarDevices struct {
}

func InitIluvatarDevice

func InitIluvatarDevice() *IluvatarDevices

func (*IluvatarDevices) CheckHealth

func (dev *IluvatarDevices) CheckHealth(devType string, n *corev1.Node) (bool, bool)

func (*IluvatarDevices) CheckType

func (dev *IluvatarDevices) CheckType(annos map[string]string, d util.DeviceUsage, n util.ContainerDeviceRequest) (bool, bool, bool)

func (*IluvatarDevices) CheckUUID

func (dev *IluvatarDevices) CheckUUID(annos map[string]string, d util.DeviceUsage) bool

func (*IluvatarDevices) CommonWord

func (dev *IluvatarDevices) CommonWord() string

func (*IluvatarDevices) GenerateResourceRequests

func (dev *IluvatarDevices) GenerateResourceRequests(ctr *corev1.Container) util.ContainerDeviceRequest

func (*IluvatarDevices) GetNodeDevices

func (dev *IluvatarDevices) GetNodeDevices(n corev1.Node) ([]*api.DeviceInfo, error)

func (*IluvatarDevices) LockNode

func (dev *IluvatarDevices) LockNode(n *corev1.Node, p *corev1.Pod) error

func (*IluvatarDevices) MutateAdmission

func (dev *IluvatarDevices) MutateAdmission(ctr *corev1.Container) (bool, error)

func (*IluvatarDevices) NodeCleanUp

func (dev *IluvatarDevices) NodeCleanUp(nn string) error

func (*IluvatarDevices) PatchAnnotations

func (dev *IluvatarDevices) PatchAnnotations(annoinput *map[string]string, pd util.PodDevices) map[string]string

func (*IluvatarDevices) ReleaseNodeLock

func (dev *IluvatarDevices) ReleaseNodeLock(n *corev1.Node, p *corev1.Pod) error

Jump to

Keyboard shortcuts

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