-
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
fix: consider version when getting CRDs for validating descriptors #6784
Conversation
Hi @acornett21, I guess what I meant is to compare the Line 8 in e95abdb
Line 47 in e95abdb
This is a very similar issue/fix to: |
Sorry I forgot to include a way to test these changes. You can try:
Run: |
Hi, any update on getting this fixed? Our workaround of removing the v1beta1 CRD from alm-examples is generating the following warning with each build/test: It would be nice to have clean test results, but that depends on this bug being fixed. |
@tthvo Could you rebase your PR? thanks. |
An additional condition is included for matching `apiVersion` of example CRs with CRD `version` when searching for the CRD in the CSV. This ensures the correct CRD version is selected for validations. Closes operator-framework#6781 Signed-off-by: Thuan Vo <[email protected]>
Hey @acornett21, I rebased it now (with a small cleanup). Thanks :D |
/override docs |
@acornett21: Overrode contexts on behalf of acornett21: docs 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-sigs/prow repository. |
Description of the change:
An additional condition is included for matching
apiVersion
of example CRs with CRDversion
when searching for the CRD in the CSV.Motivation for the change:
Previously, the
olm-spec-descriptors
scorecard test failed when multiple versions of CRD are included in the CSV. The CRs specified inalm-examples
annotations are validated only against the first matched CRD (by kind), which is incorrect. This ensures the CRD with correct kind and version is selected for descriptor scorecard test.Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments
(seechangelog/fragments/00-template.yaml
)website/content/en/docs
Fixes #6781