Bug 1880744

Summary: OLM dependencies.yaml format is incorrect
Product: OpenShift Container Platform Reporter: Chris Johnson <cdjohnson>
Component: DocumentationAssignee: Jonquil Williams <jonwilli>
Status: CLOSED CURRENTRELEASE QA Contact: Jian Zhang <jiazha>
Severity: low Docs Contact: Vikram Goyal <vigoyal>
Priority: low    
Version: 4.5CC: adellape, aos-bugs, jokerman
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-03 16:20:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Johnson 2020-09-19 15:23:11 UTC
Document URL: 
https://docs.openshift.com/container-platform/4.5/operators/olm-packaging-format.html#olm-bundle-format-dependencies_olm-packaging-format

Section Number and Name: 

Describe the issue: 
The example for the dependencies.yaml is not correct.  If this schema format is used, it results in the entire dependencies.yaml being ignored by OLM.

Suggestions for improvement: 
Update the example as follows:

dependencies:
  - type: olm.package
    value:
      packageName: prometheus
      version: >0.27.0
  - type: olm.gvk
    value: 
      group: etcd.database.coreos.com
      kind: EtcdCluster
      version: v1beta2

Additional information:

Comment 2 Jonquil Williams 2020-09-21 18:41:55 UTC
https://github.com/openshift/openshift-docs/pull/25633

QA review needed.

Comment 4 Jian Zhang 2020-09-22 09:22:13 UTC
LGTM, verify it.

Comment 5 Jonquil Williams 2021-03-03 16:20:11 UTC
This fix has been published.