kubernetes-csi / external-snapshotter

Sidecar container that watches Kubernetes Snapshot CRD objects and triggers CreateSnapshot/DeleteSnapshot against a CSI endpoint.
Apache License 2.0
463 stars 361 forks source link

volumesnapshotcontent-bound-protection finalizer is not removed although volumesnapshot-being-deleted annotation is set #1112

Open dploeger opened 3 weeks ago

dploeger commented 3 weeks ago

(this is probably a follow-up to #248)

What happened:

I wanted to delete a namespace, which also triggered the deletion of the volume snapshots in this namespace. However, the volumesnapshotcontent resources were never removed. Only after manually removing the volumesnapshotcontent-bound-protection finalizer, all resources could be removed. Additionally, no events were logged that might lead to an error in the backend.

What you expected to happen:

The volumesnapshots and the respective volumesnapshotcontent resources are deleted successfully. Or, if any error occurs, the resources have events attached to them.

How to reproduce it:

Delete a volumesnapshot.

Anything else we need to know?:

Our environment is based on VMware Tanzu

Environment: