-
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.
Add os/arch/image_size fields to manifest model
closes: #1767
- Loading branch information
Showing
14 changed files
with
219 additions
and
38 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_image_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/0043_add_os_arch_image_size_manifest_fields.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-30 11:09 | ||
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_image_size fields." | ||
) | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('container', '0042_add_manifest_nature_field'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='manifest', | ||
name='architecture', | ||
field=models.TextField(null=True), | ||
), | ||
migrations.AddField( | ||
model_name='manifest', | ||
name='compressed_image_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
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.