local-path-provisioner icon indicating copy to clipboard operation
local-path-provisioner copied to clipboard

feature: add support to set folderName on PVC

Open vvanouytsel opened this issue 1 year ago • 4 comments

Whenever a PV is dynamically created, a directory is generated with the following name $persistentVolumeName_$persistentVolumeClaimNamespace_$persistentVolumeClaimName.

It would be helpful if we can decide what the directory name of the generated directory would be up front. This could be done by setting an annotation on the persistent volume claim.

annotations:
  folderName: fooBar

This logic is included in the following PR: https://github.com/rancher/local-path-provisioner/pull/372

vvanouytsel avatar Feb 06 '24 08:02 vvanouytsel