k3s/pkg
Kubernetes Submit Queue 451b7ca7f7 Merge pull request #43053 from feiskyer/sandbox_gc
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
2017-05-03 01:07:07 -07:00
..
api Fixes broken link in PodSpec 2017-05-02 13:33:49 -03:00
apimachinery/tests
apis Add kube-proxy config file support 2017-05-01 18:02:47 -04:00
auth
bootstrap/api
capabilities
client Merge pull request #44338 from shashidharatd/leader-election 2017-05-02 13:03:57 -07:00
cloudprovider Merge pull request #44868 from vmware/dsclustersupport 2017-04-28 11:38:59 -07:00
controller Merge pull request #45100 from sttts/sttts-deflake-TestUpdateNodeWithMultiplePods 2017-05-02 10:34:58 -07:00
conversion
credentialprovider
features
fieldpath
fields
generated move metrics to staging 2017-05-01 16:43:50 -07:00
hyperkube
kubeapiserver Merge pull request #44196 from xiangpengzhao/cmd-cleanup 2017-04-28 21:28:09 -07:00
kubectl add subresource support to kube auth can-i 2017-05-02 12:08:20 +08:00
kubelet Merge pull request #43053 from feiskyer/sandbox_gc 2017-05-03 01:07:07 -07:00
kubemark Fix kube-proxy to watch services and endpoints 2017-05-02 13:28:05 +02:00
labels
master separate discovery from the apiserver 2017-05-02 08:50:43 -04:00
metrics
printers Fixes get -oname for unstructured objects 2017-04-28 14:12:36 -03:00
probe fix various bad tests 2017-04-25 11:23:33 -07:00
proxy Change locking mechanism in kube-proxy 2017-04-28 09:40:39 +02:00
quota
registry Add PATCH to supported list of proxy subresource verbs 2017-04-27 10:38:10 -04:00
routes
runtime
security Merge pull request #41571 from php-coder/fix_comments 2017-04-21 08:34:07 -07:00
securitycontext
serviceaccount
ssh
types
util Add kube-proxy config file support 2017-05-01 18:02:47 -04:00
version
volume Remove rkouj from owners files. 2017-04-28 17:14:38 -07:00
watch
BUILD
OWNERS