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

Refactor the handling of outdated timestamps #174

Open
grisu48 opened this issue Nov 29, 2022 · 0 comments
Open

Refactor the handling of outdated timestamps #174

grisu48 opened this issue Nov 29, 2022 · 0 comments

Comments

@grisu48
Copy link
Collaborator

grisu48 commented Nov 29, 2022

Timestamps for deletion are currently scattered over multiple variables and some variables per CSP, e.g.

[cleanup]
# Max age of an image file
max-images-age-hours = 24

[cleanup.namespace.qac]
# EC2 snapshots younger than this amount of days will be ignored
ec2-max-snapshot-age-days = 2
# EC2 volumes younger than this amount of days will be ignored
ec2-max-volumes-age-days = 2

We should unify the TTL handling and instead of having hours and days variables allow the user to set a custom duration that will be parsed (e.g. max-image-age = 24h or ec2-max-volumes-age = 2d).

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

No branches or pull requests

1 participant