-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #507
- Loading branch information
Showing
13 changed files
with
736 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Added support for pull-through caching. Users can now create a distribution with a remote pointing | ||
to a remote registry without specifying the upstream name and Pulp automatically downloads missing | ||
content and acts as a smart proxy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
pulp_container/app/migrations/0037_create_pull_through_cache_models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# Generated by Django 4.2.4 on 2023-08-01 19:00 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import pulpcore.app.models.access_policy | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0108_task_versions"), | ||
("container", "0036_containerpushrepository_pending_blobs_manifests"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="ContainerPullThroughDistribution", | ||
fields=[ | ||
( | ||
"distribution_ptr", | ||
models.OneToOneField( | ||
auto_created=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
parent_link=True, | ||
primary_key=True, | ||
serialize=False, | ||
to="core.distribution", | ||
), | ||
), | ||
( | ||
"private", | ||
models.BooleanField( | ||
default=False, | ||
help_text="Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.", | ||
), | ||
), | ||
], | ||
options={ | ||
"default_related_name": "%(app_label)s_%(model_name)s", | ||
}, | ||
bases=("core.distribution", pulpcore.app.models.access_policy.AutoAddObjPermsMixin), | ||
), | ||
migrations.CreateModel( | ||
name="ContainerPullThroughRemote", | ||
fields=[ | ||
( | ||
"remote_ptr", | ||
models.OneToOneField( | ||
auto_created=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
parent_link=True, | ||
primary_key=True, | ||
serialize=False, | ||
to="core.remote", | ||
), | ||
), | ||
], | ||
options={ | ||
"default_related_name": "%(app_label)s_%(model_name)s", | ||
}, | ||
bases=("core.remote", pulpcore.app.models.access_policy.AutoAddObjPermsMixin), | ||
), | ||
migrations.AddField( | ||
model_name="containerrepository", | ||
name="pending_blobs", | ||
field=models.ManyToManyField(related_name="pending_blobs", to="container.blob"), | ||
), | ||
migrations.AddField( | ||
model_name="containerrepository", | ||
name="pending_manifests", | ||
field=models.ManyToManyField(to="container.manifest"), | ||
), | ||
migrations.AddField( | ||
model_name="containerrepository", | ||
name="pending_tags", | ||
field=models.ManyToManyField(to="container.tag"), | ||
), | ||
migrations.AddField( | ||
model_name="containerrepository", | ||
name="remaining_blobs", | ||
field=models.ManyToManyField(related_name="remaining_blobs", to="container.blob"), | ||
), | ||
migrations.AddField( | ||
model_name="containerdistribution", | ||
name="pull_through_distribution", | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="distributions", | ||
to="container.containerpullthroughdistribution", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.