kubernetes/pkg/controller/volume
Kubernetes Submit Queue afa68cc287
Merge pull request #62886 from msau42/fix-localssd-fsgroup
Automatic merge from submit-queue (batch tested with PRs 62780, 62886). 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>.

Only count local mounts that are from other pods

**What this PR does / why we need it**:
In GCE, we mount the same local SSD in two different paths (for backwards compatability).  This makes the fsGroup conflict check fail because it thinks the 2nd mount is from another pod.  For the fsgroup check, we only want to detect if other pods are mounting the same volume, so this PR filters the mount list to only those mounts under "/var/lib/kubelet".

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #62867

**Release note**:

```release-note
NONE
```
2018-04-20 20:06:13 -07:00
..
attachdetach Only count mounts that are from other pods 2018-04-19 15:40:51 -07:00
events In findMatchingVolumes: 2017-11-21 21:42:35 -08:00
expand Only count mounts that are from other pods 2018-04-19 15:40:51 -07:00
persistentvolume Only count mounts that are from other pods 2018-04-19 15:40:51 -07:00
pvcprotection Always Start pvc-protection-controller and pv-protection-controller 2018-04-20 19:54:50 +02:00
pvprotection Always Start pvc-protection-controller and pv-protection-controller 2018-04-20 19:54:50 +02:00
OWNERS Update volume OWNERS to reflect active sig-storage reviewers 2017-10-26 13:26:33 -07:00