k3s/pkg/client
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
..
cache Merge pull request #26925 from ZTE-PaaS/249043822-patch-1 2016-06-25 12:57:50 -07:00
chaosclient Uncomment the code that cause by #19254 2016-04-25 23:21:31 +08:00
clientset_generated Merge pull request #26680 from olegshaldybin/fake-clientset-registry 2016-06-29 06:04:33 -07:00
leaderelection pkg/client/leaderelection: log err when retrieving endpoint 2016-05-23 14:37:19 -07:00
metrics
record Make fake event recorder thread safe. 2016-05-04 14:20:13 +02:00
restclient Merge pull request #26857 from rajdeepd/client_test 2016-06-27 22:06:40 -07:00
testdata
testing/core Expect namespace deletion in NamespaceController 2016-06-28 11:54:13 -07:00
transport Merge pull request #26559 from wojtek-t/max_idle_conns_per_host 2016-06-01 11:41:42 -07:00
typed Merge pull request #27644 from enj/dev/enj/issues/9307 2016-06-26 21:11:12 -07:00
unversioned client/unversioned: add certificates client 2016-06-27 14:29:16 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00