kubernetes/pkg
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
..
api Merge pull request #54680 from tianshapjq/testcase-pod/util_test.go 2018-02-06 06:31:29 -08:00
apis Merge pull request #59437 from mikedanese/id-api 2018-02-06 22:42:38 -08:00
auth Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
capabilities Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
client Fix typo 2018-02-01 19:11:19 +08:00
cloudprovider Merge pull request #59423 from jingax10/upgrade_aliases_branch 2018-02-06 21:34:43 -08:00
controller Merge pull request #59350 from jsafrane/recycler-wait 2018-02-07 10:01:32 -08:00
credentialprovider Better check for GCE VM 2018-01-17 18:35:51 -05:00
features Merge pull request #59252 from jsafrane/mountpropagation-beta 2018-02-05 22:28:38 -08:00
fieldpath Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
generated Merge pull request #59334 from cblecker/top-dir-owners 2018-02-05 21:14:37 -08:00
kubeapiserver Merge pull request #58743 from NickrenREN/pv-protection 2018-02-01 19:39:52 -08:00
kubectl Merge pull request #59227 from juanvallejo/jvallejo/remove-mapper-dep-printer 2018-02-07 08:39:15 -08:00
kubelet Merge pull request #59287 from cheftako/cloud-context-level 2018-02-06 20:27:39 -08:00
kubemark Move ungated 'alpha' KubeletConfiguration fields and self-registration fields to KubeletFlags 2017-11-15 17:47:10 -08:00
master Merge pull request #59287 from cheftako/cloud-context-level 2018-02-06 20:27:39 -08:00
printers Merge pull request #52942 from amitkumarj441/patch-3 2018-02-06 07:10:00 -08:00
probe Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
proxy Merge pull request #57336 from danwinship/proxier-simplification 2018-02-06 15:54:07 -08:00
quota Merge pull request #50286 from Pingan2017/modify0808 2018-01-15 11:35:03 -08:00
registry Promote v1alpha1 meta to v1beta1 2018-02-02 14:00:45 -05:00
routes Update Dashboard add-on to version 1.8.0 2017-11-28 17:53:02 +01:00
scheduler Merge pull request #59449 from aveshagarwal/master-rhbz-1540822 2018-02-06 22:42:45 -08:00
security selinux/mustrunas_test.go(TestMustRunAsValidate): add more test cases to improve code coverage. 2018-01-24 18:52:11 +01:00
securitycontext pkg/securitycontext/util_test.go(TestAddNoNewPrivileges): update tests. 2018-01-08 15:46:39 +01:00
serviceaccount svcacct: move claim generation out of TokenGenerator 2018-02-06 13:19:54 -08:00
ssh Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
util Merge pull request #57268 from m1093782566/validate-ipset 2018-02-06 14:35:34 -08:00
version Kubelet flags take precedence 2018-01-29 10:07:37 -08:00
volume Merge pull request #58287 from dg-i/ceph-provisioner-userid 2018-02-07 08:00:28 -08:00
watch/json remove outdate package 2018-01-15 23:17:19 +08:00
.import-restrictions
BUILD Merge pull request #58295 from zouyee/outdate 2018-02-05 22:28:41 -08:00
OWNERS