tembo-io / tembo

Goodbye Database Sprawl, Hello Postgres.
https://tembo.io
PostgreSQL License
1.09k stars 35 forks source link

Add retention policy for VolumeSnapshots #1031

Closed nhudson closed 1 week ago

nhudson commented 2 weeks ago

This PR adds some code to cleanup VolumeSnapshots and Backup objects from the cluster after the defined volume_snapshot_retention_peroid config value.

This is to fix an issue we are seeing with the snapshot-controller handling too many snapshots on the cluster and in our cloud services. CNPG currently doesn't support deleting snapshots after some retention period.

fixes: PRO-2209