Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1688540 - [marketplace] RoleBinding, OperatorSource and CatalogSourceConfig fails schema validation
Summary: [marketplace] RoleBinding, OperatorSource and CatalogSourceConfig fails schem...
Keywords:
Status: POST
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.1.0
Assignee: Abu Kashem
QA Contact: Fan Jia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-13 23:06 UTC by aravindh
Modified: 2019-03-29 13:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description aravindh 2019-03-13 23:06:07 UTC
Description of problem:

Editing a CatalogSource or OperatorSource with the "--validate=true" option results in the following error:


# operatorsources.marketplace.redhat.com "certified-operators" was not valid:
# * : Invalid value: "The edited file failed validation": [ValidationError(OperatorSource.spec): unknown field "displayName" in com.redhat.marketplace.v1alpha1.OperatorSource.spec, ValidationError(OperatorSource.spec): unknown field "publisher" in com.redhat.marketplace.v1alpha1.OperatorSource.spec, ValidationError(OperatorSource): unknown field "status" in com.redhat.marketplace.v1alpha1.OperatorSource]

# catalogsourceconfigs.marketplace.redhat.com "certified-operators" was not valid:
# * : Invalid value: "The edited file failed validation": [ValidationError(CatalogSourceConfig.spec): unknown field "csDisplayName" in com.redhat.marketplace.v1alpha1.CatalogSourceConfig.spec, ValidationError(CatalogSourceConfig.spec): unknown field "csPublisher" in com.redhat.marketplace.v1alpha1.CatalogSourceConfig.spec, ValidationError(CatalogSourceConfig): unknown field "status" in com.redhat.marketplace.v1alpha1.CatalogSourceConfig]
#

How reproducible: Always


Steps to Reproduce:
1. oc edit opsrc <opsrcname> --validate=true

Actual results: The edit does not go through


Expected results: The edit should pass the schema validation and go through


Additional info:

Comment 1 Fan Jia 2019-03-14 02:43:45 UTC
Editing a CatalogSource or OperatorSource can success without the "--validate=true" option.

Comment 2 Jian Zhang 2019-03-14 03:31:57 UTC
I think we should address this issue, raise the P/S.

Comment 4 Abu Kashem 2019-03-27 15:35:59 UTC
This PR addresses the bug: https://github.com/operator-framework/operator-marketplace/pull/144


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