-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Promote oadp-operator bundle directly instead of a broken index #83282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kaovilai
wants to merge
1
commit into
openshift:main
Choose a base branch
from
kaovilai:oadp-operator-bundle-promotion
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: openshift/release
Length of output: 9219
🌐 Web query:
OpenShift ci-operator promotion configuration excluded_images additional_images multiple promotion targets semantics💡 Result:
In OpenShift ci-operator, the promotion configuration defines how container images built from a repository are promoted to external ImageStreams for use in other projects [1][2]. When multiple promotion targets are specified, the configuration allows for granular control over which images are published to each target [3][4]. Core Semantics and Configuration: 1. Multiple Promotion Targets: The promotion.to field accepts a list of targets [3][4]. Each target is defined by a block containing parameters such as namespace, name, or tag [1][2]. This allows a single repository to promote images to multiple destination ImageStreams simultaneously [5]. 2. additional_images: This field is a mapping that allows you to promote intermediary pipeline images (e.g., compiled test binaries or internal scripts) that are not part of the primary component build [1]. It maps the pipeline image tag to the desired name in the destination ImageStream [1]. Note that images specified here are exempt from the excluded_images restriction [1]. 3. excluded_images: This is an array of image names that should be blocked from promotion [1]. This exclusion applies to images built by the repository [1]. 4. Wildcard Support: The * wildcard can be used within the excluded_images list to exclude all images for a specific target [3][4]. This is particularly useful when configuring multiple targets, as it allows you to promote only specific, select images to one destination while promoting others elsewhere [3][5]. Example of Complex Promotion: The following configuration demonstrates promoting specific images to one target and everything else to a different target [3][4]: promotion: to: - namespace: "ci" name: "cli-ocm" excluded_images: - "*" additional_images: latest: cli-ocm - namespace: "origin" name: "4.15" excluded_images: - cli-ocm In this example, the first target only receives the cli-ocm image (via additional_images), while the second target receives all built images except for cli-ocm [3][4]. Promotion only occurs if all configured targets are successful and the --promote flag is used [1].
Citations:
🏁 Script executed:
Repository: openshift/release
Length of output: 50374
🏁 Script executed:
Repository: openshift/release
Length of output: 206
🏁 Script executed:
Repository: openshift/release
Length of output: 204
Exclude
test-oadp-operatorfrom both promotion targets.Add
excluded_images: [test-oadp-operator]to theoadp-1.6andoadp-devtag targets. Keep theadditional_imagesmapping because exclusions do not affect explicitly mapped images.📍 Affects 2 files
ci-operator/config/openshift/oadp-operator/openshift-oadp-operator-oadp-1.6.yaml#L19-L27(this comment)ci-operator/config/openshift/oadp-operator/openshift-oadp-operator-oadp-dev.yaml#L19-L27🤖 Prompt for AI Agents
Source: MCP tools