-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update scheduler initialization in predicates.go
With previous code and recent changes to scheduler codebase we did not initialize informer hooks which updated scheduler cache used by some of the predicate function (especially MatchInterPodAffinity). This change replicates how scheduler is initialized now - I.e now we actually create Scheduler object now and do explicity call AddAllEventHandlers. As a followup a discussion will be started with sig-scheduling to make this initialization in CA simpler and with less copy-pasting of code from scheduler codebase.
- Loading branch information
Showing
1 changed file
with
75 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters