forked from pulp/pulp_container
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes pulp#507
- Loading branch information
Showing
15 changed files
with
750 additions
and
112 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 an 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
63 changes: 63 additions & 0 deletions
63
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,63 @@ | ||
# Generated by Django 4.2.2 on 2023-06-15 09:50 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import pulpcore.app.models.access_policy | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0107_distribution_hidden'), | ||
('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')), | ||
('upstream_name', models.TextField(db_index=True)), | ||
], | ||
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.