For RWX volume, kubelet does not perform recursive ownership/permission
change. The heuristics that kubelet uses is being modified via -
https://github.com/kubernetes/enhancements/issues/1682
Having said that, for RWX volumes which are made available via NFS
protocol, using fsGroup is not recommended because if there are 2 pods
that are trying to use same volume but with different fsGroup then one
pod may lock out the other pod.
To avoid this, we must be able to set the folder permissions to 777.
This commit adds a cli option --mount-permissions, that allows to
define custom permissions. If the value is not specified, then default
permissions will be kept.
Cherry-picked from: https://github.com/kubernetes-csi/csi-driver-nfs/pull/36
Since NFS plugin does not support ControllerServiceCapability,
set it to csi.ControllerServiceCapability_RPC_UNKNOWN.
Also set ControllerServer to nil instead of using the default
because ControllerServer is not implemented in NFS plugin.
If this support is added in the future, capabilities need to
be added accordingly.
This patch updates the README for plugins for CSI 0.2.0.
It includes the following changes:
- Updates the CSC tool location
- Removes "get supported versions" because that was removed
from CSI.