k3s/pkg/kubelet/kuberuntime
Kubernetes Submit Queue 5d9f1f82a6
Merge pull request #58229 from sjenning/exempt-sandbox-image
Automatic merge from submit-queue (batch tested with PRs 58422, 58229, 58421, 58435, 58475). 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>.

kubelet: imagegc: exempt sandbox image

The image GC logic currently does not consider the sandbox image to be in-use by pods, since it isn't explicitly listed in the pod spec.  However, it is trivially in-use if there are any pods running on the node.

This change adds logic to exempt the sandbox image from GC by always considering it as in-use.

**Reviewer Note**
I am changing `(m *kubeGenericRuntimeManager) GetImageRef` to return the ID always rather than the first tag if it exists.  Seemed ok to me.  Makes some error messages a little less readable in that the ID will be printed and not the tag.  Just wanted to see what reviewers think about this.

@derekwaynecarr @dashpole
2018-01-18 16:36:36 -08:00
..
logs Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
BUILD Remove dependency on v1 API in base credential provider 2018-01-05 17:52:06 -05:00
doc.go cmd/kubelet 2016-11-23 15:53:09 -08:00
fake_kuberuntime_manager.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
helpers.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
helpers_test.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
instrumented_services.go Fix CRI container/imagefs stats. 2017-09-18 07:48:20 +00:00
instrumented_services_test.go add TestStatus to instrumented_services_test 2017-10-17 18:33:02 +08:00
kuberuntime_container.go kubelet: MustRunAsNonRoot should reject a pod if it has non-numeric USER. 2017-11-29 16:00:00 +01:00
kuberuntime_container_test.go kubelet: MustRunAsNonRoot should reject a pod if it has non-numeric USER. 2017-11-29 16:00:00 +01:00
kuberuntime_gc.go fix #52462. Do not GC exited containers in running pods 2017-09-28 09:37:21 -07:00
kuberuntime_gc_test.go Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
kuberuntime_image.go kubelet: imagegc: exempt sandbox image 2018-01-17 15:10:44 -06:00
kuberuntime_image_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_logs.go Make CRI logs parsing to a library 2017-11-07 10:07:16 +08:00
kuberuntime_manager.go kubelet: include runtime error in event on CreatePodSandbox failure 2017-11-28 12:07:11 -06:00
kuberuntime_manager_test.go Merge pull request #56960 from islinwb/remove_unused_code_ut_pkg 2018-01-18 02:41:29 -08:00
kuberuntime_sandbox.go Consolidate DNS codes in kubelet pkg 2017-11-16 21:07:24 -08:00
kuberuntime_sandbox_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
labels.go run hack/update-all 2017-06-22 11:31:03 -07:00
labels_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
legacy.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
legacy_test.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
security_context.go kubelet: MustRunAsNonRoot should reject a pod if it has non-numeric USER. 2017-11-29 16:00:00 +01:00
security_context_test.go security_context_test.go(TestVerifyRunAsNonRoot): add more test cases. 2017-12-20 18:02:52 +01:00