-
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
19 changed files
with
1,263 additions
and
143 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 the need to create and mirror repositories in advance. 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
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
56 changes: 56 additions & 0 deletions
56
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,56 @@ | ||
# Generated by Django 4.2.8 on 2023-12-12 21:15 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import pulpcore.app.models.access_policy | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0116_alter_remoteartifact_md5_alter_remoteartifact_sha1_and_more'), | ||
('container', '0036_containerpushrepository_pending_blobs_manifests'), | ||
] | ||
|
||
operations = [ | ||
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='containerrepository', | ||
name='pending_blobs', | ||
field=models.ManyToManyField(to='container.blob'), | ||
), | ||
migrations.AddField( | ||
model_name='containerrepository', | ||
name='pending_manifests', | ||
field=models.ManyToManyField(to='container.manifest'), | ||
), | ||
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. Related distributions inherit this value. Defaults to unrestricted pull access.')), | ||
('description', models.TextField(null=True)), | ||
('namespace', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='container_pull_through_distributions', to='container.containernamespace')), | ||
], | ||
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.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.