-
Notifications
You must be signed in to change notification settings - Fork 36
Add finalizer to backup secrets #1211
Copy link
Copy link
Open
Description
Report
Deleting a namespace that has ps-backups using S3 storage gets stuck and backups don't get cleaned up because as soon as you mark the namespace for deletion the secret containing the access key for S3 gets deleted, so the operator is unable to cleanup the backups and delete the ps-backups.
More about the problem
I'd expect that the operator adds a finalizer to the required secret as long as there is a backup that uses it, to ensure it isn't deleted while there are backups that depend on it. Once there are no more backups that depend on the secret the finalizer can be removed allowing deletion of the secret.
Steps to reproduce
- Create a namespace with a MySQL instance
- Create a ps-backup using S3 or other destination requiring access to a secret for authentication
- Attempt to delete the namespace
- The namespace will get stuck in terminating and cannot be cleaned up without manually removing finalizers from the ps-backup which leaves the backup on the destination.
Versions
- Kubernetes: 1.32
- Operator: 1.0.0
- Database: Any
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
Researching