mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-20 18:00:57 +00:00
Automatic merge from submit-queue forget pod first after binding failed Signed-off-by: sakeven <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 ```