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

kamel reports error when trying to use a camel-k-runtime version not following the sematic version #4715

Closed
claudio4j opened this issue Sep 4, 2023 · 0 comments · Fixed by #4741
Assignees
Labels
kind/bug Something isn't working

Comments

@claudio4j
Copy link
Contributor

What happened?

When there is a IntegrationPlatform set with a runtime version like 2.16.0.beta-00006 there is an error

Unable to retrieve the operator version: CamelCatalog version: 2.16.0.beta-00006 can't be found in default namespace

That is a side effect of the real error, because the

In Camel K 1.12, the error message was printed only in debug mode, which was basically swallowed if log level is INFO, then camel catalog was null, forcing camel-k-operator to generate a new camel-catalog and no error message was logged anywhere.

Steps to reproduce

Install camel-k-operator 2.0 with a runtime version: 2.16.0.redhat-00006
Run: kamel version -a

It will show the error in the cli output

Unable to retrieve the operator version: CamelCatalog version: 2.16.0.redhat-00006 can't be found in default namespace

Relevant log output

No response

Camel K version

2.0.0

@claudio4j claudio4j added the kind/bug Something isn't working label Sep 4, 2023
@claudio4j claudio4j self-assigned this Sep 4, 2023
@squakez squakez changed the title [Bug]: kamel reports error when trying to use a camel-k-runtime version not following the sematic version kamel reports error when trying to use a camel-k-runtime version not following the sematic version Sep 6, 2023
claudio4j added a commit to claudio4j/camel-k that referenced this issue Sep 12, 2023
claudio4j added a commit to claudio4j/camel-k that referenced this issue Sep 13, 2023
Fix apache#4715

* When there is a catalog build error, show in the operator log
* Only prints catalog information when it's available
claudio4j added a commit to claudio4j/camel-k that referenced this issue Sep 14, 2023
Fix apache#4715

* When there is a catalog build error, show in the operator log
* Only prints catalog information when it's available
squakez pushed a commit that referenced this issue Sep 15, 2023
Fix #4715

* When there is a catalog build error, show in the operator log
* Only prints catalog information when it's available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
1 participant