-
Notifications
You must be signed in to change notification settings - Fork 453
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
Make folder names configurable #302
Comments
Yeah, there is a similar request #291. |
We still need to handle the existing volume folders. Possible solutions are
Any feedback is appreciated. |
I suppose you had the same situation when you implemented #77 ? Maybe you could add an optional IMHO, if the user sets or changes this |
I'll confess interest in this - specifically for the ability to quickly lift and shift under disaster recovery. |
Also looking for this feature to make disaster recovery simpler in my home lab. The suggestion in #291 looks great. Just use subdirs like namespace/pvc-name. |
Since PVC paths are not predictable its unusable for me. rancher/local-path-provisioner#302
Since PVC paths are not predictable its unusable for me. rancher/local-path-provisioner#302
Since PVC paths are not predictable its unusable for me. rancher/local-path-provisioner#302
Since PVC paths are not predictable its unusable for me. rancher/local-path-provisioner#302
Any update on this? |
@derekbit Happy Anniversary. Any luck with this one? |
@KyleSanderson Can you check whether #385 is good enough? |
I think the author wrecked themselves, they only exposed If someone's going in there, adding https://github.com/Masterminds/sprig should let anyone do anything once all the necessary keys are exposed. |
Currently, the folder names are created with a hardcoded pattern:
pvname_namespace_pvcname
(see https://github.com/rancher/local-path-provisioner/blob/master/provisioner.go#L261).It would be very useful to be able to use a different folder name pattern, like
namespace-pvcname
ornamespace/pvcname
The goal is to have a predictable and stable directory name, which would have several advantages:
reclaimPolicy
set toRetain
, it would be much easier to transfer a stateful workload from one node to another one. You would only have to remove the workload & PVC, then move the directory to the target node, modify your workload to make it run on the target node, and deploy it again. Currently, it's more complicated because you have to move the directory content inside the new directory (and you don't know its name beforehand). It would also cover the case of renaming a nodereclaimPolicy
set toRetain
, it would be possible to delete then recreate the PVC while keeping the data. Useful when the PVC has been deleted/recreated (by mistake or on purpose)The nfs-subdir-external-provisioner has to do something very similar regarding folders, and has implemented what is necessary to make the pattern configurable. See https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/blob/master/cmd/nfs-subdir-external-provisioner/provisioner.go#L105
The text was updated successfully, but these errors were encountered: