This repository was archived by the owner on Apr 17, 2025. It is now read-only.
This repository was archived by the owner on Apr 17, 2025. It is now read-only.
Buckets are not cleaned up unless they are empty #5
Open
Description
The following behaviour is seen on Google Cloud using the S3 compatibility for Google Cloud Storage.
When a PVC is deleted, the behaviour w.r.t. the underlying PV should be defined entirely by the reclaim policy of the PV. By default, this is Delete
- I would expect this to mean that the underlying bucket will be deleted when the PV is deleted. However, this fails with the following message:
controller.go:1138] Deletion of volume "pvc-ebee2c31-b501-11e8-a1ab-42010a9a022c" failed: rpc error: code = Unknown desc = The bucket you tried to delete is not empty.
With a reclaim policy of Delete
, I would expect this to succeed, even if the bucket is non-empty. If data-retention is important, the PVs should use a reclaim policy of Retain
.