-
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.
Add os/arch/layers_size fields to manifest model
closes: #1767
- Loading branch information
Showing
13 changed files
with
267 additions
and
40 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 @@ | ||
Added `architecture`, `os`, and `compressed_layers_size` fields to Manifest. |
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
49 changes: 49 additions & 0 deletions
49
pulp_container/app/migrations/0042_update_manifest_and_manifestlistmanifest.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,49 @@ | ||
# Generated by Django 4.2.16 on 2024-10-02 12:04 | ||
import warnings | ||
|
||
from django.db import migrations, models | ||
|
||
def print_warning_for_updating_manifest_fields(apps, schema_editor): | ||
warnings.warn( | ||
"Run 'pulpcore-manager container-handle-image-data' to update the manifests' " | ||
"os, architecture, and compressed_layers_size fields." | ||
) | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('container', '0041_add_pull_through_pull_permissions'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='manifest', | ||
name='architecture', | ||
field=models.TextField(null=True), | ||
), | ||
migrations.AddField( | ||
model_name='manifest', | ||
name='compressed_layers_size', | ||
field=models.IntegerField(null=True), | ||
), | ||
migrations.AddField( | ||
model_name='manifest', | ||
name='os', | ||
field=models.TextField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='manifestlistmanifest', | ||
name='architecture', | ||
field=models.TextField(blank=True, default=''), | ||
), | ||
migrations.AlterField( | ||
model_name='manifestlistmanifest', | ||
name='os', | ||
field=models.TextField(blank=True, default=''), | ||
), | ||
migrations.RunPython( | ||
print_warning_for_updating_manifest_fields, | ||
reverse_code=migrations.RunPython.noop, | ||
elidable=True, | ||
), | ||
] |
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
Oops, something went wrong.