Skip to content

Scorecard basic checks is not considering the scenarios where the CRD can be without spec #5313

@camilamacedo86

Description

@camilamacedo86

Bug Report

What did you do?

Check a project where I have the CRD only to share status across the components and without spec defined

What did you expect to see?

Not fail because is missing spec
Not warning because is missing the examples for an API that does not have specs

Possible Solution

The following suggestion should only appear only when a spec is provided

"suggestions": [
              "Warning: Value binding.operators.coreos.com/v1alpha1, Kind=BindableKinds: provided API should have an example annotation"
            ]

We ought to not raise the error: https://github.com/operator-framework/operator-sdk/blob/master/internal/scorecard/tests/basic.go#L49-L60

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.scorecardIssue relates to the scorecard subcomponent

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions