k3s/pkg/volume
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
..
aws_ebs golint fixes for aws cloudprovider 2016-06-24 17:06:38 -04:00
azure_file Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
cephfs Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
cinder Add Cinder volume plugin attach tests. 2016-06-21 13:12:47 +02:00
configmap Use correct namespace in unit tests that use fake clientset 2016-06-28 11:26:34 -07:00
downwardapi Merge pull request #26781 from aveshagarwal/master-dapi-volume-annotations-labels-issue 2016-06-18 09:19:21 -07:00
empty_dir Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
fc Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
flexvolume Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
flocker Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
gce_pd Merge pull request #27553 from justinsb/pvc_zone_spreading_2 2016-06-22 01:22:16 -07:00
git_repo Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
glusterfs Use correct namespace in unit tests that use fake clientset 2016-06-28 11:26:34 -07:00
host_path Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
iscsi Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
nfs Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
rbd Introduce new kubelet volume manager 2016-06-15 09:34:08 -07:00
secret Use correct namespace in unit tests that use fake clientset 2016-06-28 11:26:34 -07:00
testing Controller wait for attach and exponential backoff 2016-06-20 18:19:55 -07:00
util Mark VolumeInUse before checking if it is Attached 2016-06-28 14:05:59 -07:00
vsphere_volume Adding scsi controller type filter while attaching disks 2016-06-20 09:54:55 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
doc.go
metrics_cached.go Wrap more comments in pkg/volume 2016-06-04 14:14:00 -04:00
metrics_du.go Wrap more comments in pkg/volume 2016-06-04 14:14:00 -04:00
metrics_du_test.go Move test-only volume files to test-only volume package 2016-02-29 14:44:28 -08:00
metrics_nil.go Wrap more comments in pkg/volume 2016-06-04 14:14:00 -04:00
metrics_nil_test.go Volume Metrics Interface and base implementation. 2015-12-09 16:06:24 -08:00
metrics_statfs.go Add metrics support for a few network based volumes. 2016-05-23 09:33:12 -07:00
plugins.go Add comments & misc review fixes 2016-06-21 15:22:16 -04:00
plugins_test.go
util.go Add comments & misc review fixes 2016-06-21 15:22:16 -04:00
util_test.go volume recycler: Don't start a new recycler pod if one already exists. 2016-05-19 12:58:25 +02:00
volume.go Controller wait for attach and exponential backoff 2016-06-20 18:19:55 -07:00
volume_linux.go Rename volume.Builder to Mounter and volume.Cleaner to Unmounter 2016-03-25 11:29:58 -07:00
volume_unsupported.go Rename volume.Builder to Mounter and volume.Cleaner to Unmounter 2016-03-25 11:29:58 -07:00