operator-framework / operator-courier

Build, verify and push operators
Apache License 2.0
41 stars 53 forks source link

csv.spec.provider in package.yaml #200

Open J0zi opened 3 years ago

J0zi commented 3 years ago

Hi team,

we are stuck on https://github.com/operator-framework/community-operators/pull/2921, because operator-courier 2.1.11 complains about package.yaml containing csv.spec.provider which is not the case. ERROR: csv.spec.provider should be a singleton list. [resource-locker-operator/package.yaml]

Despite package.yaml looks like this:

packageName: resource-locker-operator
channels:
- name: alpha
  currentCSV: resource-locker-operator.v1.0.0
defaultChannel: alpha

Steps to reproduce

 git clone https://github.com/J0zi/community-operators.git
 cd community-operators 
 git checkout courier-issue
 operator-courier verify resource-locker-operator --ui_validate_io --validation-output /tmp/operator-test/linting-results.json 

output:

ERROR: csv.spec.provider should be a singleton list. [resource-locker-operator/package.yaml]
ERROR: UI validation failed to verify that required fields for operatorhub.io are properly formatted. [resource-locker-operator/package.yaml]
Resulting bundle is invalid, input yaml is improperly defined.

expected output:

{"warnings": [], "errors": []}