Skip to content

[main] add initContainer for handle-image-data command - #267

Closed
jerabekjiri wants to merge 1 commit into
ansible:mainfrom
jerabekjiri:add-handle-image-data-main
Closed

jerabekjiri wants to merge 1 commit into
ansible:mainfrom
jerabekjiri:add-handle-image-data-main

Conversation

@jerabekjiri

Copy link
Copy Markdown
Contributor
SUMMARY

When upgrading from 2.6 to 2.7, the pulp_container migration adds a data field to the Manifest model but leaves it NULL for existing manifests. The operator never runs pulpcore-manager container-handle-image-data to populate it from the existing artifacts, which can result in broken execution environments after upgrade.

Fix
Add a handle-image-data init container that runs pulpcore-manager container-handle-image-data automatically after DB migrations. The command populates manifest.data from existing artifacts for all manifests (both synced and pushed) as part of the upgrade process, so customers don't have to run it manually.

The command is a no-op when all manifests already have data populated.

ADDITIONAL INFORMATION

@jerabekjiri

Copy link
Copy Markdown
Contributor Author

I just noticed there's another solution #266. My approach uses init containers. We can decide with which solution we want to go with.

@jerabekjiri

Copy link
Copy Markdown
Contributor Author

/retest

@jerabekjiri jerabekjiri closed this Jun 3, 2026
@jerabekjiri jerabekjiri reopened this Jun 3, 2026
@jerabekjiri jerabekjiri closed this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant