kubernetes-csi / external-provisioner

Sidecar container that watches Kubernetes PersistentVolumeClaim objects and triggers CreateVolume/DeleteVolume against a CSI endpoint
Apache License 2.0
328 stars 318 forks source link

Naming of dinamically provisioned volumes #1164

Open migs35323 opened 4 months ago

migs35323 commented 4 months ago

Is your feature request related to a problem?/Why is this needed Volumes generated by the csi provisioner (trough a pvc ) get a random name ( prefix-{UUID} ) even tough a persistent volume claim has a custom name or specify a volume name, the csi provisioner ignores it and generates a random UUID.

I have a cluster with hundreds of volumes all named pvc-UUID and it's really hard to maintence or understand what workload the pv is related to...

Describe the solution you'd like in detail I'd like to request that volumes get a name based of their pvc name or a way to request a pvc with our own name.

Describe alternatives you've considered maybe it can grab the name from an annotation or label as alternatives? Additional context https://github.com/longhorn/longhorn/discussions/5841

k8s-triage-robot commented 1 month ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 2 weeks ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten