k3s/pkg/kubelet
k8s-merge-robot 7f3da674f7 Merge pull request #26680 from olegshaldybin/fake-clientset-registry
Automatic merge from submit-queue

Track object modifications in fake clientset

Fake clientset is used by unit tests extensively but it has some
shortcomings:

- no filtering on namespace and name: tests that want to test objects in
  multiple namespaces end up getting all objects from this clientset,
  as it doesn't perform any filtering based on name and namespace;

- updates and deletes don't modify the clientset state, so some tests
  can get unexpected results if they modify/delete objects using the
  clientset;

- it's possible to insert multiple objects with the same
  kind/name/namespace, this leads to confusing behavior, as retrieval is
  based on the insertion order, but anchors on the last added object as
  long as no more objects are added.

This change changes core.ObjectRetriever implementation to track object
adds, updates and deletes.

Some unit tests were depending on the previous (and somewhat incorrect)
behavior. These are fixed in the following few commits.
2016-06-29 06:04:33 -07:00
..
api/v1alpha1/stats Track image storage usage for docker containers 2016-04-25 16:00:34 -07:00
cadvisor Merge pull request #24771 from timstclair/event-store 2016-05-27 15:56:13 -07:00
client Update client connections to try to use http2, except attach, exec, and 2016-05-27 15:08:42 -05:00
cm Fix reference to linux-only struct 2016-06-27 11:13:49 -04:00
config Clean-up sources ready tracking 2016-05-06 12:11:29 -04:00
container kubelet/kubenet: Fix getRunningPods() to support rkt pods 2016-06-22 13:45:13 -05:00
custommetrics
dockertools Use : as seccomp security option operator for Docker 1.10 2016-06-28 16:44:48 +02:00
envvars Fix the rest of the code 2016-04-29 17:12:10 -04:00
eviction Make Qos naming consistent across the codebase 2016-06-26 16:19:47 -07:00
leaky
lifecycle Expose errors from libecycle hooks as events for the pod. 2016-05-24 11:12:53 -07:00
metrics 1) Add docker operation timeout metrics. 2016-05-06 10:53:13 -07:00
network Merge pull request #27914 from yifan-gu/fix_kubenet_hostport 2016-06-23 18:48:45 -07:00
pleg kubelet/cni: make cni plugin runtime agnostic 2016-06-22 11:36:10 -05:00
pod Rename **/manager.go 2016-06-21 15:11:31 -07:00
prober Rename **/manager.go 2016-06-21 15:11:31 -07:00
qos Make Qos naming consistent across the codebase 2016-06-26 16:19:47 -07:00
rkt Merge pull request #28044 from yifan-gu/bump_rkt 2016-06-24 22:50:29 -07:00
server Merge pull request #27800 from derekwaynecarr/fix_filename_typo 2016-06-27 09:49:16 -07:00
status Fix mirror pod identity change test 2016-06-28 11:54:13 -07:00
types Custom sort function for InitContainersStatuses 2016-06-07 23:57:23 +02:00
util In kubelet's handler of pod update, prints out deletiontimestamp if it's not nil 2016-06-08 23:48:40 -07:00
volume Merge pull request #28160 from saad-ali/waitForGracefulTerm 2016-06-29 01:33:31 -07:00
OWNERS
container_bridge.go Improve go report card by fixing typos in comments 2016-03-04 18:30:59 -08:00
disk_manager.go kubelet/cadvisor: Refactor cadvisor disk stat/usage interfaces 2016-05-19 11:13:47 -07:00
disk_manager_test.go kubelet/cadvisor: Refactor cadvisor disk stat/usage interfaces 2016-05-19 11:13:47 -07:00
doc.go
flannel_helper.go
image_manager.go Calculating the disk usage based on available bytes instead of usage bytes to account for reserved blocks in image GC 2016-06-23 21:41:33 -07:00
image_manager_test.go Calculating the disk usage based on available bytes instead of usage bytes to account for reserved blocks in image GC 2016-06-23 21:41:33 -07:00
kubelet.go Merge pull request #28160 from saad-ali/waitForGracefulTerm 2016-06-29 01:33:31 -07:00
kubelet_cadvisor.go kubelet/cadvisor: Refactor cadvisor disk stat/usage interfaces 2016-05-19 11:13:47 -07:00
kubelet_cadvisor_test.go kubelet/cni: make cni plugin runtime agnostic 2016-06-22 11:36:10 -05:00
kubelet_getters.go Retrieve host IP in isolation from apiserver 2016-06-20 11:47:32 -07:00
kubelet_getters_test.go Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
kubelet_resources.go Downward API defaults resource limits to node capacity/allocatable 2016-06-17 14:18:18 -04:00
kubelet_resources_test.go Downward API defaults resource limits to node capacity/allocatable 2016-06-17 14:18:18 -04:00
kubelet_test.go Merge pull request #28160 from saad-ali/waitForGracefulTerm 2016-06-29 01:33:31 -07:00
kubelet_volumes.go Fix several spelling errors in comments. 2016-06-17 10:41:18 -07:00
networks.go
oom_watcher.go
oom_watcher_test.go
pod_workers.go Add killPodNow to kubelet 2016-05-12 19:17:08 -04:00
pod_workers_test.go Add killPodNow to kubelet 2016-05-12 19:17:08 -04:00
reason_cache.go Update reason_cache.go 2016-06-03 16:33:36 +08:00
reason_cache_test.go
root_context_linux.go
root_context_unsupported.go
runonce.go kubelet: Use MkdirAll instead of Mkdir 2016-05-22 00:23:18 +03:00
runonce_test.go Volume manager verify containers terminated before deleting 2016-06-28 21:38:59 -07:00
runtime.go add NetworkStatus in NetworkPlugin interface for kubelet to consume 2016-05-04 13:46:31 -07:00
util.go Refactor func canRunPod 2016-06-16 21:36:07 -04:00
volume_host.go Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00