metal-stack / csi-driver-lvm

MIT License
130 stars 26 forks source link

delete PVC on pod eviction #110

Open nrobert13 opened 3 hours ago

nrobert13 commented 3 hours 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 3 hours 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 3 hours 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 2 hours ago

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