• Kubernetes Submit Queue's avatar
    Merge pull request #48451 from sakeven/fix/ForgetPod_first_after_bind_failed · 4f6af5fa
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    forget pod first after binding failed
    Signed-off-by: 's avatarsakeven <jc5930@sina.cn>
    
    
    
    **What this PR does / why we need it**:
    
    In the implementation of scheduler cache, `FinishBinding` marks Pod expired, and then pod would be cleaned in ttl seconds. While `ForgetPod` checks Pod whether assumed,  if not, it reports an error.
    
    So if binding failed and ttl(now 30s) is too short,  the error will occur when `ForgetPod`, thus we won't record `BindingRejected` event.
    
    Although it's rare, we shouldn't depend on the value of ttl.
    
    **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**:
    
    **Release note**:
    
    ```
    NONE
    ```
    4f6af5fa
Name
Last commit
Last update
..
admission Loading commit data...
auth Loading commit data...
scheduler Loading commit data...