-
Notifications
You must be signed in to change notification settings - Fork 107
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
PV auto-naming by namespace/pvc name #402
Comments
I would also love this! |
@Blackclaws Can you provide a detailed explanation for the same. Including what names you used for pvc and what names you are expecting for the k8s PV and zfs datasets. |
I had very similar idea, but i missed this request and i created #520 This approach would be enough also for me, but it would be even better, if it could also be done without the uuid part. Or maybe made customizable by some patter string that could fill in namaspace, pvc name, uuid, like The advantage of being able to customize it and do just |
There is a limit on the max char length of the Kubernetes resources which is 64. How can we ensure that the human-readable name falls within this limit and still be unique always? |
I think this may not possible today, at least for dynamic provisioning, because the k8s csi external-provisioner does not support this.
This would have to be tackled upstream: kubernetes-csi/external-provisioner#1164 Perhaps for static provisioning, when importing existing datasets, this may already be possible since we're creating the PVs ourselves? |
Describe the problem/challenge you have
The pv/dataset names do not map easily to pvcs when looking purely at the zfs datasets and not having the kubectl output to compare.
Describe the solution you'd like
Allow a naming scheme for datasets that follows: namespace/pvc-name-uuid (for deduplication purposes on recreating previously bound volumes). This would allow you to easily pick out the datasets containing specific data from for example a remote backup without having to cross reference kubectl get pv.
The text was updated successfully, but these errors were encountered: