Skip to content
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 apiVersion when getting example yaml for crds #60

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tthvo
Copy link

@tthvo tthvo commented Jul 9, 2024

Fixes #56

Description

  • Added additional condition for checking apiVersion when searching for alm-examples for CRDs.
  • Displayed a version next to CRD name for clarity (maybe there is a better design?)
  • Applied lint fixes.

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 cryostatio/cryostat-operator#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 added 3 commits July 9, 2024 16:25
Solves k8s-operatorhub#56. When getting example YAMLs for CRDs, apiVersion should be
considered in cases where a CRD is shipped with >= 2 versions.

Signed-off-by: Thuan Vo <[email protected]>
Signed-off-by: Thuan Vo <[email protected]>
@tthvo
Copy link
Author

tthvo commented Jul 9, 2024

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

@ebaron
Copy link

ebaron commented Oct 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Operator preview CRD tiles do not display the correct examples for CRDs with more than 1 apiVersion
2 participants