• Kubernetes Submit Queue's avatar
    Merge pull request #50805 from bsalamat/preemption_metacompute · 4ba2b625
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Add support to modify precomputed predicate metadata upon adding/removal of a pod
    
    **What this PR does / why we need it**: This PR adds capability to change precomputed predicate metadata and let's us add/remove pods to the precomputed metadata efficiently without the need ot recomputing everything upon addition/removal of pods. This PR is needed as a part of adding preemption logic to the scheduler.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
    
    **Special notes for your reviewer**:
    To make the review process a bit easier, there are three commits. The cleanup commit is only moving code and renaming some functions, without logic changes.
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    ref/ #47604
    ref/ #48646
    
    /assign @wojtek-t 
    
    @kubernetes/sig-scheduling-pr-reviews @davidopp
    4ba2b625
predicates_test.go 110 KB