Skip to content

Supporting gid as mount option #449

@gnufied

Description

@gnufied

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.

cc @jdef @saad-ali @msau42 @jsafrane

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions