Skip to content

(SDK validators) - Warn for channel convention is not working #5586

@camilamacedo86

Description

@camilamacedo86

Bug Report

Warn for channel convention is not working

What did you do?

Run operator-sdk bundle validate ./bundle --select-optional suite=operatorframework for the bundle generate in the testdata/go/v3/memcached-operator which is scaffold bydefual with alpha.

What did you expect to see?

A warning with the link for the channel naming doc. See: https://github.com/operator-framework/api/blob/master/pkg/validation/internal/operatorhub.go#L225-L250

What did you see instead? Under which circumstances?

operator-sdk bundle validate ./bundle --select-optional suite=operatorframework
WARN[0000] Warning: Value : (memcached-operator.v0.0.1) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects. 
ERRO[0000] Error: Value : (memcached-operator.v0.0.1) csv.Spec.Icon elements should contain both data and mediatype 

Environment

/language go
/language ansible
/language helm

$ operator-sdk version

Master / 1.18.0

Possible Solution

We need to fix it in the operator-framework/api and then bump the project here.
Note that the problem might be in the bundle loader which is not getting the list of channels.

Additionally:

Metadata

Metadata

Assignees

Labels

language/goIssue is related to a Go operator project

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions