percona / roadmap

Public Percona Roadmaps
10 stars 1 forks source link

[K8SPXC-442] Add support for retention of backups stored on S3 #18

Closed spron-in closed 3 years ago

spron-in commented 3 years ago

Community Note

Tell us about the feature Using the operator and the CR example to save backups to a bucket, we noticed the pxc-backup resource (in Kubernetes) is not removing the backup files inside the target bucket once it's deletes.

This is problematic since the retention is not being enforced in full. Not to mention any manual backup also adds objects to the bucket that never gets deleted.

Right now, the solution would be to delegate this deletion to the bucket lifecycle option, but that is problematic for us since there are more objects being stored in the bucket.

As far as I can tell, the operator is using only the Kubernetes resources. Maybe there should be a new job to clean the bucket objects to preserve the current pxc-backup removal while addressing this issue?

Which product(s) is this request for? PXC, Operators

Tell us about the problem Clean up backups from S3 and keep pxc-backup objects in sync

Describe alternatives you've considered Enable retention on S3 side, but that might cause inconsistency with k8s objects

Additional context None

spron-in commented 3 years ago

Released in version 1.8.0. See Release Notes here.