Correct event registration for multiple scheduler plugins.

This commit is contained in:
Abdullah Gharaibeh
2022-04-12 14:55:57 -04:00
parent 7380fc735a
commit 6d499ee9ea
7 changed files with 107 additions and 6 deletions

View File

@@ -83,7 +83,7 @@ func (s *preFilterState) Clone() framework.StateData {
// failed by this plugin schedulable.
func (pl *NodeAffinity) EventsToRegister() []framework.ClusterEvent {
return []framework.ClusterEvent{
{Resource: framework.Node, ActionType: framework.Add | framework.UpdateNodeLabel},
{Resource: framework.Node, ActionType: framework.Add | framework.Update},
}
}