The inability to create a custom path and name for PV.
BledaiOld opened this issue · 1 comments
As I can see the pvName and the pvPath to create a PV are strictly defined. However, for our purposes, a flexible solution is needed.
To decouple PV settings of NFS client (mount options, path, etc) and PVC settings it is better to put all these settings into StorageClass and makes PV-provisioner work on it.
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
namespace: kube-system
name: managed-nfs-storage-test-2
provisioner: fuseim.pri/ifs
parameters:
archiveOnDelete: "false"
pathPattern: "{pvc.namespace}/{pvc.name}"
namePattern: "{pvc.name}-{pvc.annotations.volume.beta.kubernetes.io/storage-class}"
Thanks for reporting the issue!
This repo is no longer being maintained and we are in the process of archiving this repo. Please see kubernetes/org#1563 for more details.
If your issue relates to nfs provisioners, please create a new issue in https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner or https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner.
Going to close this issue in order to archive this repo. Apologies for the churn and thanks for your patience!