mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue (batch tested with PRs 45005, 43053) kubelet: fix sandbox garbage collection **What this PR does / why we need it**: Currently, kuberuntime garbage collection can't distinguish just-created sandboxes from failed sandboxes. Especially when the time from sandbox creation to ready is longer than GC's minAge. In such cases, those sandboxes may be garbage collected early before they are ready. This PR removes `sandboxMinGCAge` and only garbage collect sandboxes when * they are containing no containers at all * and not the latest sandbox if it is belonging to an existing pod. **Which issue this PR fixes** Fixes #42856. **Release note**: ```release-note NONE ``` cc @yujuhong @Random-Liu |
||
---|---|---|
.. | ||
api | ||
apimachinery/tests | ||
apis | ||
auth | ||
bootstrap/api | ||
capabilities | ||
client | ||
cloudprovider | ||
controller | ||
conversion | ||
credentialprovider | ||
features | ||
fieldpath | ||
fields | ||
generated | ||
hyperkube | ||
kubeapiserver | ||
kubectl | ||
kubelet | ||
kubemark | ||
labels | ||
master | ||
metrics | ||
printers | ||
probe | ||
proxy | ||
quota | ||
registry | ||
routes | ||
runtime | ||
security | ||
securitycontext | ||
serviceaccount | ||
ssh | ||
types | ||
util | ||
version | ||
volume | ||
watch | ||
BUILD | ||
OWNERS |