-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nfs: allow users to specify NFS export name #4414
Comments
That can probably be done, but a name needs to be unique enough so that no collisions can happen. It is possible with the Kubernets CSI components to pass additional metadata about a PV/PVC in the CreateVolume request. If the Ceph cluster is only used for one Kubernetes cluster, we could setup the name like |
The
|
@nixpanic do we have any length limitation on the exporter we create and what if same name/namespace is used in the different cluster you mentioned and its an external ceph cluster? |
NFS has standard filename/path limitations. The limitations of the object names in Kubernetes and the CSI spec are more strict. If there are two Kubernetes clusters using the same Ceph cluster, and there exists a namespace/pvc combination in both Kubernetes cluster, the behaviour would be undefined. Users should not enable this "friendly name" feature in that case. |
@nixpanic |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
friendly ping |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
ping |
Contributions for this feature are very welcome! |
Describe the feature you'd like to have
Currently, NFS export name is generated by
ComposeCSIID()
and the generated name is a long alphanumeric string. We hope we can specify a meaningful name for a NFS export.What is the value to the end user? (why is it a priority?)
No priority, but I think it's good to have. Users can specify a simple and meaningful NFS export name as they want and it would be more convenient for users to manage NFS exports.
How will we know we have a good solution? (acceptance criteria)
I know that we can pass parameters in StorageClass to CSI drivers. However, specifying NFS export name in StorageClass seems not a good idea. Not sure if it's possible to pass PVC name to CSI driver?
The text was updated successfully, but these errors were encountered: