• Kubernetes Submit Queue's avatar
    Merge pull request #62886 from msau42/fix-localssd-fsgroup · afa68cc2
    Kubernetes Submit Queue authored
    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
    ```
    afa68cc2
Name
Last commit
Last update
..
attachdetach Loading commit data...
events Loading commit data...
expand Loading commit data...
persistentvolume Loading commit data...
pvcprotection Loading commit data...
pvprotection Loading commit data...
OWNERS Loading commit data...