camel-k
camel-k copied to clipboard
Health trait usage example
Provide some example to show how to use the trait. See other examples in https://github.com/apache/camel-k/tree/main/examples/traits as a reference.
@squakez could give some description on what do we need to do solve this issue
Sure. I've added a description. Basically we need to think some example to show how to use the trait.
I would like to take this issue. Please assign it to me
I'm trying to run the sample integration in dev mode but, it seems to be stuck there for a while now!!
and also it shows phase changed to error

@squakez any suggestions would be helpful
For some reason it did not build the Kit. Please try to reset your work (kamel reset) and they retry to see if that fixes. It would also be good to have a look at the operator log (kubectl logs camel-k-operator-xyz) and see the errors appearing there.
I forgot to mention that the build for Golang failed!!

could this be the possible reason for integration not running?
also Sample.java contains
from('timer:tick?period=3000')
.setBody().constant('Hello world from Camel K')
.to('log:info')
I guess the above code could be the reason for the errors
also Sample.java contains
from('timer:tick?period=3000').setBody().constant('Hello world from Camel K').to('log:info')
This is not correct Java syntax. There should be a class Sample and the strings should be in " instead of '. And there should be ; at the end of the statement. Currently you're using Groovy syntax.
The project build failure is a separate issue to this. About the different languages examples, please have a look at the following: https://github.com/apache/camel-k/tree/main/examples/languages
also Sample.java contains
from('timer:tick?period=3000').setBody().constant('Hello world from Camel K').to('log:info')This is not correct Java syntax. There should be a class Sample and the strings should be in " instead of '. And there should be ; at the end of the statement. Currently you're using Groovy syntax.
Hi, Thanks for correction!!
The project build failure is a separate issue to this. About the different languages examples, please have a look at the following: https://github.com/apache/camel-k/tree/main/examples/languages
Sure!!
This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!
Done in https://github.com/apache/camel-k-examples/tree/main/generic-examples/traits/health