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(trait): camel catalog regression #5524

Merged
merged 4 commits into from
May 21, 2024
Merged

fix(trait): camel catalog regression #5524

merged 4 commits into from
May 21, 2024

Conversation

squakez
Copy link
Contributor

@squakez squakez commented May 20, 2024

#5378 had introduced a regression on certain traits that were expecting the presence of a Camel Catalog in order to work. These traits can still work using the legacy business logic which were expecting Camel Quarkus as a runtime. These PR amend that behavior and requires the introduction of new parameters for the health trait in order to let the user explicitly configure the path for the different probes we offer.

Knative and KnativeService traits would require the user to forcefully set enabled=true and auto=false in order to let the operator know to skip any check which would require the presence of a catalog, making them work also when a catalog is absent (ie, "sourceless" Integrations).

Notice that the health probes are necessarily part of the runtime specification as they are runtime detail specific (ie, Quarkus probes differ from Springboot probes), therefore, in absence of a catalog, it seems to be the best option to let the user specify the probes path to use. This is defaulting to Quarkus legacy, so it won't require immediate attention by users upgrading. However it's advisable to switch to a new explicit logic as soon as possible as using those default is deprecated and will be removed soon.

For logging, we are defaulting to the Quarkus runtime, but it's also advisable to move soon to an explicit logic where the catalog is missing (ie, setting explicitly the logging camel properties).

Closes #5519

Release Note

fix(trait): camel catalog regression

@squakez squakez added the kind/bug Something isn't working label May 20, 2024
Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 38.2% to 38.4% (+0.2%)

Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 38.2% to 38.4% (+0.2%)

@squakez squakez added the trigger native test Use this label in PR when you want to trigger Quarkus Native tests label May 20, 2024
@squakez squakez merged commit 4317da8 into apache:main May 21, 2024
17 checks passed
@squakez squakez deleted the fix/5519 branch May 21, 2024 09:31
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 trigger native test Use this label in PR when you want to trigger Quarkus Native tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Knative service not working when using sourceless Integration in v2.3.1
3 participants