Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
camilamacedo86 opened this issue Mar 8, 2022 · 0 comments · Fixed by #5668
Closed

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

camilamacedo86 opened this issue Mar 8, 2022 · 0 comments · Fixed by #5668
Assignees
Labels
language/go Issue is related to a Go operator project
Milestone

Comments

@camilamacedo86
Copy link
Contributor

camilamacedo86 commented Mar 8, 2022

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:

@openshift-ci openshift-ci bot added the language/go Issue is related to a Go operator project label Mar 8, 2022
@camilamacedo86 camilamacedo86 changed the title Warn for channel convention is not working (SDK validators) - Warn for channel convention is not working Mar 8, 2022
@varshaprasad96 varshaprasad96 added this to the v1.19.0 milestone Mar 21, 2022
@asmacdo asmacdo modified the milestones: v1.19.0, v1.20.0 Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language/go Issue is related to a Go operator project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants