-
Notifications
You must be signed in to change notification settings - Fork 380
Description
This keeps coming back and so far CSI has stayed away from how volume permissions are applied to CSI volume and leaving this to CO.
But in Kubernetes - we have found a use case which calls for some clarification and possibly a spec change in CSI.
The problem is - certain CSI drivers apply gid as a mount option during NodeStage or NodePublish and CO needs to pass gid of pod/workload to the CSI driver, so as CSI driver can mount volume with appropriate mount option during nodestage/nodepublish.
Why can't we use existing mount flags for this?
The reason we can't use existing mount flags for this is because - CO does not know how to format/compose the mount option string. Some CSI driver may require this as -gid=<gid>
and others in different format.
Alternatively we can break boundaries of CO and CSI driver and pass gid as some sort of extended volume attributes on nodestage/nodepublish and driver is free to use the gid as however it wants.
A third option is to make it explicit option in CSI spec. This is the option we would like to explore via this issue.