metal-stack / csi-driver-lvm

MIT License
136 stars 25 forks source link

delete PVC on pod eviction #110

Open nrobert13 opened 1 month ago

nrobert13 commented 1 month ago

First and foremost, thank you for the provisioner.

I'm wondering if there's a way to delete pvc's on pod eviction during node roll over for instance. The data can be reconstructed on the new node, but due to the existing PVC the pod is stuck in pending on the new volume creation.

majst01 commented 1 month ago

This would be a nice addition if the Reclaim Policy is respected accordingly. We haven't time to dig into that TBH.

nrobert13 commented 1 month ago

Ideally this would be supported by the statefulset, where there's already option to delete on scale or delete. I also opened an issue there.

Gerrit91 commented 1 month ago

Would be quite handy to have this, I also dreamed about this more than once in the past. 😅