Skip to content

Add option to expire old backups

Jon Aumann requested to merge jaumann1/CNG:expire-backups into master

What does this MR do?

This MR introduces the optional setting to have the backup utility expire/delete old backups after a successful backup.

I wanted to introduce this functionality because managing the backups through lifecycle rules can be problematic if backups start failing and the issue isn't noticed until after the lifecycle time period has elapsed (of course, not that it would ever happen......). This will give the backup job the ability to manage the number of backups, while being aware that a new backup has just completed successfully.

Related issues

gitlab-org/charts/gitlab#1628

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion

Required

  • Merge Request Title, and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Integration tests added to GitLab QA
  • The impact any change in container size has should be evaluated
Edited by Jon Aumann

Merge request reports