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

Fixed 4747: automatic deletion of outdated snapshots #901

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dominikvagner
Copy link
Contributor

Summary

This PR adds automatic deletion of outdated snapshots to the nightly-jobs command. The date after which the snapshots should be deleted is settable in the config.


Also adds a list of snapshots which are going to be deleted in the next 14 days to the fetch/list template endpoints. (NOT DONE YET, DUE TO DEPENDING ON OTHER PRs)

WAITING ON:

Testing steps

#TODO

@@ -243,6 +244,7 @@ func setDefaults(v *viper.Viper) {
v.SetDefault("options.template_event_topic", "platform.content-sources.template")
v.SetDefault("options.repository_import_filter", "")
v.SetDefault("options.external_url", "http://pulp.content:8000")
v.SetDefault("options.snapshot_retain_days_limit", 90)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd probably set the default to a higher value (365), and then we can customize it in app-interface to do less for stage

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.

2 participants