Skip to content

Conversation

@avollmer-redhat
Copy link
Contributor

Summary
This PR adds documentation to the package-operator documentation website for global image prefix overrides.
Documents:
Jira: PKO-237
Documentation ticket:
Jira: PKO-275

This PR does not contain integration tests as it is documentation. It can be previewed by running a hugo server locally. Screenshots of localhost version attached to JIRA ticket.

Change Type
New Feature documentation

@avollmer-redhat avollmer-redhat requested a review from erdii May 6, 2025 21:21
weight: 2001
---

The Global Image Prefix Override feature enables deployment of upstream package-operator artifacts from private registries without rebuilding them in downstream pipelines. This solves the previously impossible scenario where organizations needed to mirror upstream images while maintaining original deployment manifests, without referencing the workload images with PKO's internal image digest feature.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the feature enables using mirrored package and workload images without needing to rebuild the images with new image references
mirroring pko artifacts to private registry is just our use case of this feature


## Usage Example

The following `mirror.sh` script demonstrates a the mirroring of the images and the modification of the bootstrap job manifests. (Images for version v1.82.2 are mirrored from the namespace `quary.io/package-operator` into the namespace `quay.io/erdii-test/pko-mirror`).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The following `mirror.sh` script demonstrates a the mirroring of the images and the modification of the bootstrap job manifests. (Images for version v1.82.2 are mirrored from the namespace `quary.io/package-operator` into the namespace `quay.io/erdii-test/pko-mirror`).
The following `mirror.sh` script demonstrates a the mirroring of the images and the modification of the bootstrap job manifests. (Images for version v1.82.2 are mirrored from the namespace `quay.io/package-operator` into the namespace `quay.io/erdii-test/pko-mirror`).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Will commit manually.

Modifying the container's `.image` field
Updating the first command-line argument in .args[0]

This is required as some componenets might directly reference images without respecting the prefix override, so the need to be explicitly changed. This ensures all PKO package image pulls during bootstrap come from your mirror location.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is required as some componenets might directly reference images without respecting the prefix override, so the need to be explicitly changed. This ensures all PKO package image pulls during bootstrap come from your mirror location.
This is required as some components might directly reference images without respecting the prefix override, so the need to be explicitly changed. This ensures all PKO package image pulls during bootstrap come from your mirror location.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will make this change manually, I noticed that the "the" should be "they need to be.." as well.

@avollmer-redhat
Copy link
Contributor Author

All change requests were made. Pending final review.

@erdii erdii merged commit 64c030b into package-operator:main Sep 8, 2025
0 of 2 checks passed
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.

3 participants