-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
operator-sdk bundle validate should ignore missing examples for "internal" APIs #5551
Comments
I will take this issue and get more information to find out what that validator does and propose some options here in this issue. |
This should be the code path for this validation https://github.com/operator-framework/api/blob/master/pkg/validation/internal/csv.go#L78 |
If I am not wrong, Scorecard also checks the alm-examples. However, it raises a WARN and is not an ERROR, no matter the check. In POV: If we decide to move forward with the suggestion over not raising warnings, suggestion to add the alm-examples when the CRD is informed via the annotation
Also, the idea is we have a CVSless bundle in the future, and these annotations ought to become properties with names that clarify better what component actually uses it. So, I'd also ask, how much real value do we bring by addressing this RFE? What problem do authors actually face because of the WARNING suggesting to use the alm-examples? How many operators use Thinking on the cost vs benefit here, I think we could spend this effort on other features which could bring more value and help the Operator Authors. However, assuming that the annotation is not OCP specific, I'd not have objections if the community would like to address it. |
This should be filed against api/ |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
In https://docs.okd.io/4.9/operators/operator_sdk/osdk-generating-csvs.html#osdk-hiding-internal-objects_osdk-generating-csvs
So there is no reason to add examples (
alm-examples
) for these internal APIs.operator-sdk bundle validate
should only print a "missing example" warning for the APIs which are not listed in theoperators.operatorframework.io/internal-objects
annotation.Related to:
The text was updated successfully, but these errors were encountered: