kubernetes/test/integration
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
..
apiserver use extensions client with explicit version 2017-11-22 21:18:14 +08:00
auth Use v1beta1 VolumeAttachment 2018-01-31 18:46:11 +08:00
client use core client with explicit version globally 2017-10-27 15:48:32 +08:00
configmap use core client with explicit version globally 2017-10-27 15:48:32 +08:00
daemonset Check RegisterMetricAndTrackRateLimiterUsage error when starting controllers 2017-11-01 12:46:07 +01:00
defaulttolerationseconds Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
deployment add basic functionality deployment integration tests 2018-02-01 16:21:07 -08:00
etcd authentication: remove TokenRequest from authentication.k8s.io/v1beta1 2018-02-06 14:07:08 -08:00
evictions use core client with explicit version globally 2017-10-27 15:48:32 +08:00
examples Fix TestAggregatedAPIServer setup 2017-11-27 11:17:55 -05:00
framework Use v1beta1 VolumeAttachment 2018-01-31 18:46:11 +08:00
garbagecollector Split the NodeController into lifecycle and ipam pieces. 2018-01-04 12:48:08 -08:00
master aesgcm - passing 2018-01-31 10:50:11 -08:00
metrics Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
objectmeta update BUILD files 2017-10-15 18:18:13 -07:00
openshift update BUILD files 2017-10-15 18:18:13 -07:00
pods update BUILD files 2017-10-15 18:18:13 -07:00
quota admission: unify plugin constructors 2017-10-30 16:56:38 +01:00
replicaset Merge pull request #55995 from supereagle/extensions-client-with-version 2017-12-14 00:45:15 -08:00
replicationcontroller Add ReplicationController integration tests. 2017-11-07 14:55:47 -08:00
scale Fix build and test errors from etcd 3.2.13 upgrade 2018-01-07 08:22:08 -08:00
scheduler Merge pull request #59350 from jsafrane/recycler-wait 2018-02-07 10:01:32 -08:00
scheduler_perf Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
secrets use core client with explicit version globally 2017-10-27 15:48:32 +08:00
serviceaccount serviceaccount: check token is issued by correct iss before verifying 2018-01-24 20:21:59 -08:00
storageclasses use core client with explicit version globally 2017-10-27 15:48:32 +08:00
tls Adding support for custom TLS ciphers in api server and kubelet 2018-01-17 12:55:55 -08:00
ttlcontroller update BUILD files 2017-10-15 18:18:13 -07:00
volume Pass pod informer to PV controller 2018-02-05 15:40:25 +01:00
benchmark-controller.json Update pause container version to 3.1 2018-01-04 11:35:29 +01:00
BUILD aesgcm - passing 2018-01-31 10:50:11 -08:00
doc.go don't use build tags to mark integration tests 2017-04-28 14:19:39 -07:00
utils.go aesgcm - passing 2018-01-31 10:50:11 -08:00