k3s/federation
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
..
apis Moving federation/v1alpha1 to federation/v1beta1 2016-06-28 17:12:58 -07:00
client Merge pull request #26680 from olegshaldybin/fake-clientset-registry 2016-06-29 06:04:33 -07:00
cluster Revert "Federation e2e supports aws" 2016-06-24 10:44:35 -07:00
cmd Moving federation/v1alpha1 to federation/v1beta1 2016-06-28 17:12:58 -07:00
manifests Revert "Federation e2e supports aws" 2016-06-24 10:44:35 -07:00
pkg Moving federation/v1alpha1 to federation/v1beta1 2016-06-28 17:12:58 -07:00
registry/cluster Merge pull request #26132 from nikhiljindal/newmaster 2016-05-27 08:31:58 -07:00
OWNERS Adding OWNERS for federation 2016-06-24 13:47:39 -07:00