kubernetes/cmd/kube-controller-manager/app
Kubernetes Submit Queue 5cecc6ec68
Merge pull request #59350 from jsafrane/recycler-wait
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Do not recycle volumes that are used by pods

**What this PR does / why we need it**:
Recycler should wait until all pods that use a volume are finished.

Consider this scenario:

1. User creates a PVC that's bound to a NFS PV.
2. User creates a pod that uses the PVC
3. User deletes the PVC.

Now the PV gets `Released` (the PVC does not exists) and recycled, however the PV is still mounted to a running pod. PVC protection won't help us, because it puts finalizers on PVC that is under user's control and user can remove it.

This PR checks that there is no pod that uses a PV before it recycles it.

**Release note**:

```release-note
NONE
```

/sig storage
2018-02-07 10:01:32 -08:00
..
options Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
apps.go Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
autoscaling.go use versiond group clients from client-go 2017-11-07 14:47:22 +08:00
batch.go Check RegisterMetricAndTrackRateLimiterUsage error when starting controllers 2017-11-01 12:46:07 +01:00
bootstrap.go use shared informers for TokenCleaner controller 2018-01-15 14:56:42 +08:00
BUILD Add PV protection controller 2018-01-31 20:18:54 +08:00
certificates.go Seperate loop and plugin control 2017-12-18 10:58:45 -08:00
controller_manager_test.go Using assertions 2017-10-10 22:44:12 -05:00
controllermanager.go Add PV protection controller 2018-01-31 20:18:54 +08:00
core.go Merge pull request #59350 from jsafrane/recycler-wait 2018-02-07 10:01:32 -08:00
extensions.go Check RegisterMetricAndTrackRateLimiterUsage error when starting controllers 2017-11-01 12:46:07 +01:00
import_known_versions.go Add new Events API group 2017-11-22 18:40:09 +00:00
plugins.go initial work for azure file grow size implementation 2018-01-30 13:36:29 +00:00
policy.go Log more verbose when DisruptionController doesn't start. 2017-05-18 13:19:06 -07:00
rbac.go add clusterrole aggregation controller 2017-11-13 08:18:00 -05:00