Documentation
¶
Index ¶
- Constants
- Variables
- func ParseConfig(fs *flag.FlagSet)
- type IluvatarDevices
- func (dev *IluvatarDevices) CheckHealth(devType string, n *corev1.Node) (bool, bool)
- func (dev *IluvatarDevices) CheckType(annos map[string]string, d util.DeviceUsage, n util.ContainerDeviceRequest) (bool, bool, bool)
- func (dev *IluvatarDevices) CheckUUID(annos map[string]string, d util.DeviceUsage) bool
- func (dev *IluvatarDevices) CommonWord() string
- func (dev *IluvatarDevices) GenerateResourceRequests(ctr *corev1.Container) util.ContainerDeviceRequest
- func (dev *IluvatarDevices) GetNodeDevices(n corev1.Node) ([]*api.DeviceInfo, error)
- func (dev *IluvatarDevices) LockNode(n *corev1.Node, p *corev1.Pod) error
- func (dev *IluvatarDevices) MutateAdmission(ctr *corev1.Container) (bool, error)
- func (dev *IluvatarDevices) NodeCleanUp(nn string) error
- func (dev *IluvatarDevices) PatchAnnotations(annoinput *map[string]string, pd util.PodDevices) map[string]string
- func (dev *IluvatarDevices) ReleaseNodeLock(n *corev1.Node, p *corev1.Pod) error
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 ¶
Types ¶
type IluvatarDevices ¶
type IluvatarDevices struct { }
func InitIluvatarDevice ¶
func InitIluvatarDevice() *IluvatarDevices
func (*IluvatarDevices) CheckHealth ¶
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) 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 ¶
Click to show internal directories.
Click to hide internal directories.