-
Notifications
You must be signed in to change notification settings - Fork 119
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
Add checkpoint support to Pulp core and file #6245
base: main
Are you sure you want to change the base?
Conversation
I think we need docs as part of this PR. Maybe some on how plugin writers can enable this feature for their plugins in /docs/dev/learn/subclassing and then some user docs somewhere in /docs/user somewhere. |
3049844
to
38ead76
Compare
pulpcore/app/migrations/0127_distribution_checkpoint_publication_checkpoint.py
Outdated
Show resolved
Hide resolved
ac5f9eb
to
38ead76
Compare
d778a95
to
19ceb1e
Compare
19ceb1e
to
39f84ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, this is quite a lot. But it's a huge pr also...
pulpcore/tests/functional/api/using_plugin/test_content_access.py
Outdated
Show resolved
Hide resolved
6f24ed7
to
9019fa5
Compare
Introduce a checkpoint field for Publication and Distribution models. Handle serving checkpoint Publications via checkpoint Distributions. Protect checkpoint Publications' RepositoryVersions from cleanup. Enable checkpoint support in pulp_file. closes pulp#6244
9019fa5
to
7780824
Compare
@mdellweg thanks for your insightful feedback, I'm confident this PR is in a better state thanks to your feedback. |
This PR adds the support for checkpoints in Pulp. This is related to this proposal . Publications can be marked as checkpoints at the creation time. Checkpoint publications are served through checkpoint distributions. Each repository can have 0-n checkpoint distributions, all serving the same content (i.e. the checkpoint publications).
The change adds a new field "checkpoint" to both the Distribution and Publication models. New publication can be made checkpoint publications by setting the checkpoint field. Checkpoint distributions can be created by setting the checkpoint field on the Distribution model and will serve all checkpoint publications. It's up to plugin writers to expose the checkpoint fields on their respective serializers.
This PR also enables the checkpoint support for pulp_file.
closes #6244