kube-object-storage / lib-bucket-provisioner

Library for the dynamic provisioning of object store buckets to be used by object store providers.
Apache License 2.0
21 stars 22 forks source link

Secret, ConfigMap and OB are not deleted when OBC is deleted #134

Closed guymguym closed 5 years ago

guymguym commented 5 years ago
kubectl create obc baba ...
kubectl get obc,ob,secret,cm
kubectl delete obc baba
kubectl get obc,ob,secret,cm
# ob, secret, cm are still there...

This seems to be because they have a finalizer and the provisioner is not removing it...

guymguym commented 5 years ago

I was trying to automate the cleanup when I uninstall the noobaa operator but due to #133 I can't even identify the secrets and configmaps that were created by my provisioner after the obc is gone.

Seems like finalizer is winning over blockOwnerDeletion and the OBC is deleted even though the objects referencing it are still "alive" since they are in a deletion process...

guymguym commented 5 years ago

Note: I couldn't reproduce it when the provisioner is running.

jeffvance commented 5 years ago

I can't dup this and perhaps #139 will improve the situation? Can we close this?

guymguym commented 5 years ago

Yes. Thanks for double checking.