-
Notifications
You must be signed in to change notification settings - Fork 159
Support partition parameter #83
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
Comments
Hi @saad-ali, @davidz627 I've created a quick patch that works that allows specifying the partition number as another parameters after the zone/volumeName. (https://github.com/ehmm/gcp-compute-persistent-disk-csi-driver/tree/feature/partitionInVolumeId) As you can see I'm new here, so I don't know if you want to merge it, or maybe it's missing some testing (I see the unit-tests there) -- or just leave it for now, but leaving a link here in the mean time and if you want me to create a PR let me know. |
/assign I will be adding partitioning to |
Can you uniquely identify a volume if the volume id doesn't contain partition number though? ie multiple volumes on the same disk but on different partitions |
You're right, the volumes are uniquely identified via volume ID so we would have conflicts here. I will change the PR to include partitions in Volume ID. |
Additionally just found this in the spec:
just as extra reason to put it in the volume id |
@ehmm For your usecase, do you need hard capacity isolation (ie partition boundaries) or could using subdirectories + Kubernetes subpath feature work for you? I think representing each partition as a separate PV in Kubernetes has some challenges with Pod scheduling, attaching and detaching, that I pointed out in #91 |
@msau42 for my use case the subPath solution would be great, I also wouldn't mind just having the root with all the subdirectories exposed as I have no isolation requirements. I personally don't imagine a lot of scenarios where isolation requirements would be needed, and I think that auto-mounting all partitions (with any supported fsType #93) is a good idea for general use cases. |
Currently partition cannot be specified in attributes, it runs into the same issue as described with the in tree GCE PD here: kubernetes/kubernetes#57915. Since @ehmm is no longer depending on this feature we will punt this until a general solution for both In-tree and CSI versions of GCE PD can be made. That will require core Kubernetes changes and will be tracked at the following issue: kubernetes/kubernetes#57915. |
GCE PD in-tree driver supports partitioning
The text was updated successfully, but these errors were encountered: