-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
language/goIssue is related to a Go operator projectIssue is related to a Go operator project
Milestone
Description
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:
- This warning would fit better in the new good practices validator (https://github.com/operator-framework/api/blob/master/pkg/validation/internal/good_practices.go) so we could move it for there.
Metadata
Metadata
Assignees
Labels
language/goIssue is related to a Go operator projectIssue is related to a Go operator project