k3s/pkg/controller
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
..
daemon daemon/controller.go: minor code cleanup 2016-06-27 10:43:06 -07:00
deployment Fix expectations in deployment controller test 2016-06-28 11:54:13 -07:00
endpoint Merge pull request #26504 from nowprovision/patch-1 2016-06-25 07:43:49 -07:00
framework add lastsyncresourceversion to sharedinformer 2016-06-28 07:42:15 -04:00
garbagecollector let dynamic client handle non-registered ListOptions; 2016-06-22 13:18:50 -07:00
job implement AddIndexers for SharedIndexInformer 2016-05-06 21:23:18 +08:00
namespace Expect namespace deletion in NamespaceController 2016-06-28 11:54:13 -07:00
node Don't panic in NodeController if pod update fails 2016-06-28 11:54:13 -07:00
persistentvolume Fix error checks after cloning. 2016-06-28 10:01:52 +02:00
petset Update use of Quantity in other classes 2016-05-19 08:41:43 -04:00
podautoscaler Use Metrics API in HPA 2016-05-20 19:50:56 +02:00
podgc rename the gc for terminated pods to "podgc" 2016-06-07 22:10:34 -07:00
replicaset fix updatePod of replication controller manager and replica set controller to 2016-06-15 10:34:26 -07:00
replication Merge pull request #27637 from hongchaodeng/rc-clean 2016-06-24 13:57:13 -07:00
resourcequota Use correct namespace in unit tests that use fake clientset 2016-06-28 11:26:34 -07:00
route Improve logging in routecontroller 2016-06-03 12:05:12 +02:00
service Fix race in informer 2016-06-14 16:40:12 +02:00
serviceaccount Use correct namespace in unit tests that use fake clientset 2016-06-28 11:26:34 -07:00
volume Mark VolumeInUse before checking if it is Attached 2016-06-28 14:05:59 -07:00
OWNERS Remove myself from a bunch of OWNERS files, as I am too overloaded 2016-05-11 13:34:51 -07:00
controller_utils.go Merge pull request #26771 from kargakis/use-pod-namespacer 2016-06-27 21:33:59 -07:00
controller_utils_test.go Fix the rest of the code 2016-04-29 17:12:10 -04:00
doc.go Refactor package controller 2015-07-29 09:54:35 -07:00
lookup_cache.go bugfix:lookupcache's Get method can not be called concurrently 2016-06-04 02:21:25 +08:00