• Kubernetes Submit Queue's avatar
    Merge pull request #64598 from MikeSpreitzer/fix-63608-b · f7de67a1
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 65152, 65199, 65179, 64598, 65216). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Remove optimization from getWork in resourcequota/controller.go
    
    **What this PR does / why we need it**:
    This change simplifies the code in
    plugin/pkg/admission/resourcequota/controller.go by removing the
    optimization in getWork that required the caller to NOT call
    completeWork if getWork returns the empty list of work.  BTW, the
    caller was not obeying that requirement; now the caller's behavior
    (which is unchanged) is right.
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #63608 
    
    **Special notes for your reviewer**:
    This is a simpler alternative to #64377 
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    f7de67a1
Name
Last commit
Last update
..
admit Loading commit data...
alwayspullimages Loading commit data...
antiaffinity Loading commit data...
defaulttolerationseconds Loading commit data...
deny Loading commit data...
eventratelimit Loading commit data...
exec Loading commit data...
extendedresourcetoleration Loading commit data...
gc Loading commit data...
imagepolicy Loading commit data...
limitranger Loading commit data...
namespace Loading commit data...
noderestriction Loading commit data...
podnodeselector Loading commit data...
podpreset Loading commit data...
podtolerationrestriction Loading commit data...
priority Loading commit data...
resourcequota Loading commit data...
security Loading commit data...
securitycontext/scdeny Loading commit data...
serviceaccount Loading commit data...
storage Loading commit data...
OWNERS Loading commit data...