rancher / local-path-provisioner

Dynamically provisioning persistent local storage with Kubernetes
Apache License 2.0
2.07k stars 439 forks source link

Allow for the configuration of shortened folder names #400

Closed js185692 closed 1 month ago

js185692 commented 1 month ago

Context

I use the local storage provisioner with LVM, and I have encountered a few times now where the folder being created is exceeding the Logical Volume name length limit. I would like to introduce a new boolean field in the config for the provisioner called shortenedFolderName that, when set, creates the folder with the same name as that of the PV (aka pvc-<uuid>).

The default naming convention will still be the same as the current implementation (that being <PV name>-<PVC namespace>-<PVC name>).

js185692 commented 1 month ago

Closing in favour of the work done in #385.