k8s-operatorhub / operatorhub.io

The OperatorHub.io website
Apache License 2.0
17 stars 13 forks source link

fix: consider apiVersion when getting example yaml for crds #60

Open tthvo opened 4 months ago

tthvo commented 4 months ago

Fixes #56

Description

Motivations

See #56. Additionally, CRD that has no corresponding alm-example is showing an incorrect one if an example of the same kind (different version) is available. See https://github.com/cryostatio/cryostat-operator/issues/909

How to test

Use the following CSV, which both specify a CRD with >= 2 versions.

Use the CSV with preview page to see the changes.

tthvo commented 4 months ago

Hey @mvalarh, would I be able to get your or anyone's opinions on these changes?

ebaron commented 2 weeks ago

Hi, would someone mind taking a look at this PR? This bug is still affecting the Cryostat Operator: https://operatorhub.io/operator/cryostat-operator