Unregister events in schedulingGates plugin

Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
kerthcet
2023-11-03 13:48:58 +08:00
parent 50f092c136
commit f77a4543d1
5 changed files with 239 additions and 5 deletions

View File

@@ -370,6 +370,10 @@ type EnqueueExtensions interface {
// and leveraged to build event handlers dynamically.
// Note: the returned list needs to be static (not depend on configuration parameters);
// otherwise it would lead to undefined behavior.
//
// The returned events could be nil to indicate that no events other than the pod's own update
// can make the pod re-schedulable. An example is SchedulingGates plugin.
// Appropriate implementation of this function will make Pod's re-scheduling accurate and performant.
EventsToRegister() []ClusterEventWithHint
}