-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PV Protection breaks deleting #5
Comments
It probably would be useful to add an external-provisioner finalizer and check for the existence of that. If it exists then try to delete the pv, if it succeeds then remove the finalizer. If it doesn't exist return false as normal. |
rmb938
added a commit
to rmb938/sig-storage-lib-external-provisioner
that referenced
this issue
Dec 21, 2018
rmb938
added a commit
to rmb938/sig-storage-lib-external-provisioner
that referenced
this issue
Dec 21, 2018
wongma7
pushed a commit
to wongma7/sig-storage-lib-external-provisioner
that referenced
this issue
Dec 21, 2018
k8s-ci-robot
added a commit
that referenced
this issue
Jan 7, 2019
fixes #5, add a finalizer to fix deletion during pv protection
humblec
pushed a commit
to humblec/sig-storage-lib-external-provisioner
that referenced
this issue
Jun 18, 2020
test enhancements
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a user deletes a PV while it has a PVC with a pv protection finalizer the CSI never gets alerted to delete the volume when the pvc is deleted.
Related Issue: kubernetes-csi/external-provisioner#195
It seems like https://github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/blob/master/controller/controller.go#L860 is the problem.
Without a fix it is very easy for a user to delete a pv and break deleting via the CSI.
The text was updated successfully, but these errors were encountered: