kubernetes/pkg/kubelet
Kubernetes Submit Queue 03b7d77be4
Merge pull request #54316 from dashpole/disk_request_eviction
Automatic merge from submit-queue. 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>.

Take disk requests into account during evictions

fixes #54314

This PR is part of the local storage feature, and it makes the eviction manager take disk requests into account during disk evictions.
This uses the same eviction strategy as we do for memory.
Disk requests are only considered when the LocalStorageCapacityIsolation feature gate is enabled.  This is enforced by adding a check for the feature gate in getRequests().
I have added unit testing to ensure that previous behavior is preserved when the feature gate is disabled.
Most of the changes are testing.  Reviewers should focus on changes in **eviction/helpers.go**

/sig node
/assign @jingxu97  @vishh
2017-11-21 14:31:47 -08:00
..
apis Merge pull request #55922 from Random-Liu/add-partical-cri-log 2017-11-21 07:43:53 -08:00
cadvisor fix cadvisor.New signature for cross build 2017-11-18 15:23:17 -08:00
certificate use versiond group clients from client-go 2017-11-07 14:47:22 +08:00
client update BUILD files 2017-10-15 18:18:13 -07:00
cm Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
config Merge pull request #53440 from jsafrane/mount-container4-10-03 2017-11-13 16:45:33 -08:00
configmap use core client with explicit version globally 2017-10-27 15:48:32 +08:00
container Consolidate DNS codes in kubelet pkg 2017-11-16 21:07:24 -08:00
custommetrics update BUILD files 2017-10-15 18:18:13 -07:00
dockershim Merge pull request #52842 from yanxuean/reduntdant-cgroups 2017-11-18 11:36:26 -08:00
envvars Update generated files 2017-11-09 12:14:08 +01:00
events update BUILD files 2017-10-15 18:18:13 -07:00
eviction take disk requests into account during evictions 2017-11-21 10:21:30 -08:00
gpu Move regexp.MustCompile to global variable 2017-11-16 22:03:12 +02:00
images update BUILD files 2017-10-15 18:18:13 -07:00
kubeletconfig Kubelet: Relative paths in local config file 2017-11-15 09:32:53 -08:00
kuberuntime Merge pull request #55922 from Random-Liu/add-partical-cri-log 2017-11-21 07:43:53 -08:00
leaky update BUILD files 2017-10-15 18:18:13 -07:00
lifecycle add admission handler for device resources allocation 2017-11-02 09:17:48 +08:00
metrics update BUILD files 2017-10-15 18:18:13 -07:00
mountpod Add mount containers to kubelet 2017-11-10 13:14:40 +01:00
network Consolidate DNS codes in kubelet pkg 2017-11-16 21:07:24 -08:00
pleg Fix typo in function name. 2017-10-17 11:31:46 +02:00
pod use core client with explicit version globally 2017-10-27 15:48:32 +08:00
preemption Update generated files 2017-11-09 12:14:08 +01:00
prober update BUILD files 2017-10-15 18:18:13 -07:00
qos Update generated files 2017-11-09 12:14:08 +01:00
remote Add fake remote runtime service 2017-10-27 15:16:53 +08:00
rkt Consolidate DNS codes in kubelet pkg 2017-11-16 21:07:24 -08:00
rktshim update BUILD files 2017-10-15 18:18:13 -07:00
secret use core client with explicit version globally 2017-10-27 15:48:32 +08:00
server Expose accelerator metrics in the summary API. 2017-11-10 14:59:43 -08:00
stats Merge pull request #54606 from miaoyq/filter-out-duplicated-container-stats 2017-11-17 23:20:36 -08:00
status Update generated files 2017-11-09 12:14:08 +01:00
sysctl Update generated files 2017-11-09 12:14:08 +01:00
types Update generated files 2017-11-09 12:14:08 +01:00
util Close the file before renaming in FileStore 2017-11-03 10:24:49 -07:00
volumemanager Merge pull request #54652 from msau42/update-owners 2017-11-01 16:30:32 -07:00
winstats Revert get version change due to the overlap in PR #55143 2017-11-15 10:27:19 -08:00
active_deadline.go run hack/update-all 2017-06-22 11:31:03 -07:00
active_deadline_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
BUILD Move DNS related kubelet codes into its own package 2017-11-15 10:56:44 -08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
kubelet.go Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
kubelet_getters.go Delete redundant parameter flag 2017-10-17 08:31:50 +08:00
kubelet_getters_test.go kubelet: remove code for handling old pod/containers paths. 2017-07-20 13:10:15 +02:00
kubelet_network.go Consolidate DNS codes in kubelet pkg 2017-11-16 21:07:24 -08: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 Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
kubelet_node_status_test.go Adds Support for Node Resource IPv6 Addressing 2017-11-10 15:13:53 -08:00
kubelet_pods.go Merge pull request #55665 from brendandburns/path 2017-11-17 17:11:16 -08:00
kubelet_pods_test.go If mountPath is missing, prefix with root dir. 2017-11-16 05:30:53 +00:00
kubelet_pods_windows_test.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
kubelet_resources.go apimachinery: remove Scheme.DeepCopy 2017-10-06 14:59:17 +02:00
kubelet_resources_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
kubelet_test.go Rearrange kubelet networking codes 2017-11-09 13:43:30 -08:00
kubelet_volumes.go use GetFileType per mount.Interface to check hostpath type 2017-09-26 09:57:06 +08:00
kubelet_volumes_test.go defer func of kubelet volume testing 2017-10-13 09:21:54 +08:00
oom_watcher.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
oom_watcher_test.go run root-rewrite-import-client-go-api-types 2017-06-22 11:30:59 -07:00
OWNERS Name change: s/timstclair/tallclair/ 2017-07-10 14:05:46 -07:00
pod_container_deletor.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
pod_container_deletor_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
pod_workers.go kubelet syncPod throws specific events 2017-10-13 10:24:09 -04:00
pod_workers_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
reason_cache.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
reason_cache_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
runonce.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
runonce_test.go Share /var/lib/kubernetes on startup 2017-08-30 16:45:04 +02:00
runtime.go Check the health of PLEG when updating the node status 2017-01-10 16:34:00 -08:00
util.go Fix comments and typo in the error message. 2017-07-14 19:17:12 +02:00
volume_host.go Add mount containers to kubelet 2017-11-10 13:14:40 +01:00