k3s/cmd
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
..
clicheck Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
cloud-controller-manager uniquify resource lock identities 2018-01-18 11:31:43 -05:00
controller-manager/app/options Seperate loop and plugin control 2017-12-18 10:58:45 -08:00
gendocs Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
genkubedocs Merge pull request #53631 from dixudx/enforce_cobra_required_flags 2018-01-18 02:00:27 -08:00
genman Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
genswaggertypedocs Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
genutils Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
genyaml Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
gke-certificates-controller Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
hyperkube switch hyper to cobra 2018-01-24 11:02:19 -05:00
importverifier Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
kube-apiserver Merge pull request #58462 from NickrenREN/va-to-beta 2018-02-01 18:50:25 -08:00
kube-controller-manager Merge pull request #59350 from jsafrane/recycler-wait 2018-02-07 10:01:32 -08:00
kube-proxy Merge pull request #57754 from ncdc/fix-kube-proxy-config-docs-and-json-tags 2018-02-05 19:43:42 -08:00
kube-scheduler Scheduler is not able to read from config file if configmap is not present 2018-02-05 20:39:22 -05:00
kubeadm Merge pull request #57230 from xiangpengzhao/new-etcd-in-kubeadm 2018-02-07 02:35:41 -08:00
kubectl switch hyper to cobra 2018-01-24 11:02:19 -05:00
kubelet Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00
kubemark Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
linkcheck Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
BUILD Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
OWNERS