kubernetes/pkg/controller/persistentvolume
k8s-merge-robot 62a8394eb4 Merge pull request #25263 from jsafrane/devel/adopt-recycle-pod
Automatic merge from submit-queue

volume recycler: Don't start a new recycler pod if one already exists.

Recycling is a long duration process and when the recycler controller is restarted in the meantime, it should not start a new recycler pod if there is one already running.

This means that the recycler pod must have deterministic name based on name of the recycled PV, we then get name conflicts when creating the pod.

Two things need to be changed:

- recycler controller and recycler plugins must pass the PV.Name to place, where the pod is created. This is most of the patch and it should be pretty straightforward.

- create recycler pod with deterministic name and check "already exists" error.

When at it, remove useless 'resourceVersion' argument and make log messages starting with lowercase.

There is an unit test to check the behavior + there is an e2e test that checks that regular recycling is not broken (it does not try to run two recycler pods in parallel as the recycler is single-threaded now).
2016-05-21 02:28:26 -07:00
..
options Retry recycle or delete operation on failure. 2016-02-05 17:02:13 +01:00
binder_test.go Big move and rename 2016-05-18 10:06:51 +02:00
controller_base.go volume controller: Fix method name in a log message 2016-05-19 12:54:17 +02:00
controller_test.go Refactor persistent volume initialization 2016-05-18 10:06:51 +02:00
controller.go volume recycler: Don't start a new recycler pod if one already exists. 2016-05-19 12:58:25 +02:00
delete_test.go Big move and rename 2016-05-18 10:06:51 +02:00
framework_test.go volume recycler: Don't start a new recycler pod if one already exists. 2016-05-19 12:58:25 +02:00
index_test.go Big move and rename 2016-05-18 10:06:51 +02:00
index.go Big move and rename 2016-05-18 10:06:51 +02:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
provision_test.go Generate shorter provisioned PV names. 2016-05-18 10:06:51 +02:00
recycle_test.go Big move and rename 2016-05-18 10:06:51 +02:00
volume_host.go Big move and rename 2016-05-18 10:06:51 +02:00