Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResourceMemory = "iscas.cn/gpu-memory" ResourceCore = "iscas.cn/gpu-core" MluResourceMemory = "iscas.cn/mlu-memory" MluResourceCore = "iscas.cn/mlu-core" DcuResourceMemory = "iscas.cn/dcu-memory" DcuResourceCore = "iscas.cn/dcu-core" ResourceUUID = "iscas.cn/dev-uuid" AnnAssumeTime = "iscas.cn/dev-assume-time" AnnAssignedFlag = "iscas.cn/dev-assigned" AnnScheduleNode = "iscas.cn/dev-schedule-node" AnnDevUseMode = "iscas.cn/dev-use-mode" )
View Source
const Name = "DevFilter"
插件名称
Variables ¶
View Source
var ( DeletePodCache []*v1.Pod DelMutex sync.Mutex )
View Source
var StopCh chan struct{}
Functions ¶
func GetKuberConfig ¶
func ReplaceStr ¶
Types ¶
type DevFilterPlugin ¶
type DevFilterPlugin struct {
// contains filtered or unexported fields
}
func (*DevFilterPlugin) Filter ¶
func (s *DevFilterPlugin) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status
Filter(ctx context.Context, state *CycleState, pod *v1.Pod, nodeInfo *NodeInfo) *Status
func (*DevFilterPlugin) Name ¶
func (s *DevFilterPlugin) Name() string
type DevResource ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
var PlugunManager *Manager
func InitInformer ¶
func NewManager ¶
func NewManager(client *kubernetes.Clientset, dynClient *dynamic.DynamicClient, devInf cache.SharedIndexInformer, podInf cache.SharedIndexInformer) *Manager
type NodeResource ¶
type NodeResource struct { NodeName string DevsByUuid map[string]*DevResource }
Click to show internal directories.
Click to hide internal directories.