Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(backup): backups are not deleted when retained nr of backups >= 20 #566

Conversation

tjespers
Copy link
Contributor

fix(backup): backups are not deleted when retained nr of backups >= 20

This commit introduces a new module variable: backup_runs_list_max_results
this variable is used to control the maximum amount of results that are
returned by the googleapis.sqladmin.v1.backupRuns.list API call.
By defaul this call only returns 20 results leading to a situation
where no old backups will be deleted whenever the desired amount of
retained backups exceed this number.

Fixes: #519

@tjespers tjespers force-pushed the fix-old-backups-not-deleted-due-to-pagination branch from bd6a864 to bf1e04b Compare January 19, 2024 20:04
This commit introduces a new module variable: backup_runs_list_max_results
this variable is used to control the maximum amount of results that are
returned by the googleapis.sqladmin.v1.backupRuns.list API call.
By defaul this call only returns 20 results leading to a situation
where no old backups will be deleted whenever the desired amount of
retained backups exceed this number.

Fixes: terraform-google-modules#519
@tjespers tjespers force-pushed the fix-old-backups-not-deleted-due-to-pagination branch from bf1e04b to 49ab893 Compare January 19, 2024 20:13
@tjespers
Copy link
Contributor Author

tjespers commented Feb 6, 2024

@imrannayer @isaurabhuttam friendly pinging to see if there is anything i can do to help get this PR merged in?

@g-awmalik
Copy link
Contributor

/gcbrun

@g-awmalik g-awmalik merged commit 6c4b0e3 into terraform-google-modules:master Feb 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CloudSQL - Old backups are never deleted
2 participants