kubernetes/pkg/controller
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
..
bootstrap create auto-gen files 2018-01-17 16:23:03 +08:00
certificates Merge pull request #58264 from WanLinghao/log_fix 2018-02-06 20:27:36 -08:00
cloud Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00
clusterroleaggregation Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
cronjob Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
daemon Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
deployment Fix UpdatePodWithRetries inline documentation 2018-01-19 12:57:24 +01:00
disruption Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
endpoint Merge pull request #57786 from zhangxiaoyu-zidif/fix-namespace-podname-print 2018-02-05 22:28:44 -08:00
garbagecollector Track run status explicitly rather than non-nil check on stopCh 2018-01-17 11:04:55 -05:00
history Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
job Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
namespace Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
nodeipam Get the node before attempting to get its Alias IP ranges 2018-01-11 17:50:07 -08:00
nodelifecycle Merge pull request #38320 from liggitt/golang-ratelimit 2018-02-05 12:40:34 -08:00
podautoscaler correct typo in HorizontalPodAutoscaler status condition 2018-01-29 13:01:43 -05:00
podgc Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
replicaset remove duplicated import 2018-01-17 09:34:59 +08:00
replication Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
resourcequota Merge pull request #57149 from deads2k/rebase-02-quota 2018-01-22 19:02:29 -08:00
route Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00
service Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00
serviceaccount svcacct: move claim generation out of TokenGenerator 2018-02-06 13:19:54 -08:00
statefulset Merge pull request #55792 from dhilipkumars/statefulset-appsv1 2018-01-26 06:54:33 -08:00
testutil Update generated files 2017-11-09 12:14:08 +01:00
ttl Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
util/node Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00
volume Merge pull request #59350 from jsafrane/recycler-wait 2018-02-07 10:01:32 -08:00
.import-restrictions
BUILD Add PV protection controller 2018-01-31 20:18:54 +08:00
client_builder.go remove duplicated import 2017-11-14 17:18:17 +08:00
controller_ref_manager_test.go Merge pull request #50353 from zhangxiaoyu-zidif/Delete-redundant-expectError-for-controller-ref-test 2017-08-12 00:00:55 -07:00
controller_ref_manager.go Migrate to GetControllerOf from meta/v1 package 2017-08-06 22:41:58 +10:00
controller_utils_test.go Removed unused function. 2017-11-14 10:53:29 +02:00
controller_utils.go Removed unnecessary type conversion 2017-11-14 11:04:18 +02:00
doc.go
lookup_cache.go Use fnv.New32a() in hash instead adler32 2017-02-15 14:03:54 +08:00
OWNERS remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00