-
Notifications
You must be signed in to change notification settings - Fork 45
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
17 changed files
with
1,035 additions
and
104 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 configure a dedicated distribution and remote | ||
linked to an external registry without specifying a repository name (upstream name). Pulp downloads | ||
missing content automatically if requested and acts as a caching 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
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
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
43 changes: 43 additions & 0 deletions
43
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,43 @@ | ||
# Generated by Django 4.2.6 on 2023-10-25 20:04 | ||
|
||
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')), | ||
], | ||
options={ | ||
'permissions': [('manage_roles_containerpullthroughdistribution', 'Can manage role assignments on pull-through cache distribution')], | ||
'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={ | ||
'permissions': [('manage_roles_containerpullthroughremote', 'Can manage role assignments on pull-through container remote')], | ||
'default_related_name': '%(app_label)s_%(model_name)s', | ||
}, | ||
bases=('core.remote', pulpcore.app.models.access_policy.AutoAddObjPermsMixin), | ||
), | ||
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
Oops, something went wrong.