Skip to content

Add CSV fields expected by various validator tools #2071

@flickerfly

Description

@flickerfly

Feature Request

Is your feature request related to a problem? Please describe.
Here are some fields in the CSV I've documented having to edit in my CSV after running gen-csv. These are all things I've found required by tools like operator-courier validate and scorecard or I received complaints about when pushing the CSV into OpenShift.

  • spec.keywords
  • spec.maintainers
  • spec.provider
  • metadata.namespace
  • spec.icon (base64 encoded image embedded in the yaml)
  • spec.customresourcedefinitions
  • spec.customresourcedefinitions.owned.[description, displayName, kind, name, version, resources]

Describe the solution you'd like
I expect that spec.[keywords,maintainers,provider] could be configured through the use of a field in deploy/olm-catalog/csv-config.yaml.

Currently, spec.customresourcedefinitions aren't included at all. I expect that information to be pulled from the CRD where available. Perhaps a placeholder should be put into the CRD when generated like other fields experience.

Absence of spec.icon throws a warning in some validators so maybe a warning here would be appropriate with a document on how to create such an icon. Also, I always move this to the bottom of the CSV for convenience since vim displays it awkwardly due to the length of the line.

Metadata

Metadata

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.olm-integrationIssue relates to the OLM integration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions