k3s/pkg/kubelet
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
..
apis Adding support for custom TLS ciphers in api server and kubelet 2018-01-17 12:55:55 -08:00
cadvisor Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
certificate Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
checkpoint Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
client Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
cm Merge pull request #56960 from islinwb/remove_unused_code_ut_pkg 2018-01-18 02:41:29 -08:00
config Mark kubelet PID namespace flag as deprecated 2018-01-10 18:35:09 +01:00
configmap Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
container Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
custommetrics Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
dockershim Merge pull request #57845 from yujuhong/minor-clean-up 2018-01-09 18:14:27 -08:00
envvars Update generated files 2017-11-09 12:14:08 +01:00
events Fixed kubelet error message to be more descriptive. Added Attach success event for help in debugging. 2017-12-15 15:36:59 -08:00
eviction Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
gpu Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
images kubelet: imagegc: exempt sandbox image 2018-01-17 15:10:44 -06:00
kubeletconfig Merge pull request #57524 from mtaufen/kc-status-selflink 2018-01-03 18:56:44 -08:00
kuberuntime Merge pull request #58229 from sjenning/exempt-sandbox-image 2018-01-18 16:36:36 -08:00
leaky update BUILD files 2017-10-15 18:18:13 -07:00
lifecycle Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
metrics Adds device plugin registration count metric and allocation latency metric. 2017-11-21 13:44:10 -08:00
mountpod Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
network remove unnecessary function getBuggyHostportChain 2018-01-09 10:38:53 +08:00
pleg Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
pod Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
preemption Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
prober Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
qos Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
remote Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
rkt Merge pull request #56960 from islinwb/remove_unused_code_ut_pkg 2018-01-18 02:41:29 -08:00
rktshim Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
secret Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
server enable on-demand metrics for eviction 2018-01-08 10:20:02 -08:00
stats Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
status Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
sysctl Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
types Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
util Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
volumemanager remove duplicated import 2018-01-17 09:34:59 +08:00
winstats Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
BUILD Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
OWNERS
active_deadline.go
active_deadline_test.go
doc.go
kubelet.go kubelet: imagegc: exempt sandbox image 2018-01-17 15:10:44 -06:00
kubelet_getters.go Remove hacks added for mesos 2017-12-03 13:52:30 -05:00
kubelet_getters_test.go
kubelet_network.go Remove hacks added for mesos 2017-12-03 13:52:30 -05:00
kubelet_network_test.go Move DNS related kubelet codes into its own package 2017-11-15 10:56:44 -08:00
kubelet_node_status.go Merge pull request #57266 from vikaschoudhary16/unhealthy_device 2018-01-12 19:55:54 -08:00
kubelet_node_status_test.go Revert k8s.gcr.io vanity domain 2017-12-22 14:36:16 -08:00
kubelet_pods.go remove useless function hasHostPortConflicts 2017-12-18 16:14:26 +08:00
kubelet_pods_test.go remove useless function hasHostPortConflicts 2017-12-18 16:14:26 +08:00
kubelet_pods_windows_test.go
kubelet_resources.go apimachinery: remove Scheme.DeepCopy 2017-10-06 14:59:17 +02:00
kubelet_resources_test.go
kubelet_test.go Merge pull request #58229 from sjenning/exempt-sandbox-image 2018-01-18 16:36:36 -08:00
kubelet_volumes.go
kubelet_volumes_test.go BlockVolumesSupport: CRI, VolumeManager and OperationExecutor changes 2017-11-20 14:10:26 -05:00
oom_watcher.go
oom_watcher_test.go
pod_container_deletor.go
pod_container_deletor_test.go
pod_workers.go kubelet syncPod throws specific events 2017-10-13 10:24:09 -04:00
pod_workers_test.go
reason_cache.go
reason_cache_test.go
runonce.go
runonce_test.go
runtime.go
util.go
volume_host.go enable flexvolume on Windows 2017-12-07 06:24:20 +00:00