Documentation ¶
Index ¶
Constants ¶
View Source
const (
OptimisticLockErrorMsg = "the object has been modified; please apply your changes to the latest version and try again"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bind ¶
type Bind struct { Name string Func func(podName string, podNamespace string, podUID types.UID, node string, cache *cache.SchedulerCache) error // contains filtered or unexported fields }
Bind is responsible for binding node and pod
func NewXPUBind ¶
func NewXPUBind(clientset *kubernetes.Clientset, c *cache.SchedulerCache) *Bind
func (Bind) Handler ¶
func (b Bind) Handler(args schedulerapi.ExtenderBindingArgs) *schedulerapi.ExtenderBindingResult
Handler handles the Bind request
type Inspect ¶
type Inspect struct { Name string // contains filtered or unexported fields }
func NewXPUInspect ¶
func NewXPUInspect(c *cache.SchedulerCache) *Inspect
type Predicate ¶
type Predicate struct { Name string Func func(pod *v1.Pod, nodeName string, c *cache.SchedulerCache) (bool, error) // contains filtered or unexported fields }
func NewXPUPredicate ¶
func NewXPUPredicate(clientset *kubernetes.Clientset, c *cache.SchedulerCache) *Predicate
func (Predicate) Handler ¶
func (p Predicate) Handler(args schedulerapi.ExtenderArgs) *schedulerapi.ExtenderFilterResult
Click to show internal directories.
Click to hide internal directories.