kubernetes-retired / external-storage

[EOL] External storage plugins, provisioners, and helper libraries
Apache License 2.0
2.69k stars 1.6k forks source link

The inability to create a custom path and name for PV. #1339

Closed BledaiOld closed 4 years ago

BledaiOld commented 4 years ago

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}"
nikhita commented 4 years ago

Thanks for reporting the issue!

This repo is no longer being maintained and we are in the process of archiving this repo. Please see https://github.com/kubernetes/org/issues/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! :pray: