Bug 2002075 - opm render does not automatically pulling in the image(s) used in the deployments
Summary: opm render does not automatically pulling in the image(s) used in the deploym...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.9
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.10.0
Assignee: Joe Lanford
QA Contact: xzha
Depends On:
Blocks: 2000379
TreeView+ depends on / blocked
Reported: 2021-09-07 20:27 UTC by Joe Lanford
Modified: 2022-03-10 16:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Bundle images rendered to the file-based catalog format did not contain related images for the images used by their operator deployment Consequence: Images used in the operator deployment were not mirrored to disconnected clusters unless they were explicitly listed in the CSV relatedImages field. Fix: The `opm render` command now explicitly adds the CSVs operator images to the set of relatedImages when rendering the bundle image to the FBC format. Result: Images used in the operator deployment are now mirrored to disconnected clusters even if they are not explictly listed in the CSV relatedImages field.
Clone Of: 2000379
Last Closed: 2022-03-10 16:08:18 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:08:42 UTC

Comment 9 xzha 2021-12-03 02:12:20 UTC
[root@preserve-olm-agent-test JIRA-2196]# opm version
Version: version.Version{OpmVersion:"dc5f6de60", GitCommit:"dc5f6de60a1a11f2f0988dc0bd061aadedc9edb1", BuildDate:"2021-12-03T01:51:28Z", GoOs:"linux", GoArch:"amd64"}

[root@preserve-olm-agent-test JIRA-2196]# opm render quay.io/olmqe/mta-operator:v0.0.4-2199 -o yaml 
image: quay.io/olmqe/mta-operator:v0.0.4-2199
name: windup-operator.0.0.4
package: mta-operator
- type: olm.gvk
    group: windup.jboss.org
    kind: Windup
    version: v1
- type: olm.package
    packageName: mta-operator
    version: 0.0.4
- image: quay.io/olmqe/mta-operator:v0.0.4-2199
  name: ""
- image: quay.io/windupeng/windup-operator-native:0.0.4
  name: ""
schema: olm.bundle

The output has relatedImages section.

LGTM, verified

Comment 12 errata-xmlrpc 2022-03-10 16:08:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.