mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Merge pull request #103686 from kerthcet/document/add_comment_for_enqueueExtensions
update comment with EnqueueExtensions
This commit is contained in:
commit
b16f7e841d
@ -307,10 +307,13 @@ type QueueSortPlugin interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// EnqueueExtensions is an optional interface that plugins can implement to efficiently
|
// EnqueueExtensions is an optional interface that plugins can implement to efficiently
|
||||||
// move unschedulable Pods in internal scheduling queues.
|
// move unschedulable Pods in internal scheduling queues. Plugins
|
||||||
|
// that fail pod scheduling (e.g., Filter plugins) are expected to implement this interface.
|
||||||
type EnqueueExtensions interface {
|
type EnqueueExtensions interface {
|
||||||
// EventsToRegister returns a series of interested events that
|
// EventsToRegister returns a series of possible events that may cause a Pod
|
||||||
// will be registered when instantiating the internal scheduling queue.
|
// failed by this plugin schedulable.
|
||||||
|
// The events will be registered when instantiating the internal scheduling queue,
|
||||||
|
// and leveraged to build event handlers dynamically.
|
||||||
// Note: the returned list needs to be static (not depend on configuration parameters);
|
// Note: the returned list needs to be static (not depend on configuration parameters);
|
||||||
// otherwise it would lead to undefined behavior.
|
// otherwise it would lead to undefined behavior.
|
||||||
EventsToRegister() []ClusterEvent
|
EventsToRegister() []ClusterEvent
|
||||||
|
Loading…
Reference in New Issue
Block a user