camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Health trait usage example

Open squakez opened this issue 3 years ago • 11 comments

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 avatar Mar 29 '22 09:03 squakez

@squakez could give some description on what do we need to do solve this issue

pankaj892 avatar Mar 29 '22 10:03 pankaj892

Sure. I've added a description. Basically we need to think some example to show how to use the trait.

squakez avatar Mar 29 '22 10:03 squakez

I would like to take this issue. Please assign it to me

tejaswari7 avatar Apr 02 '22 13:04 tejaswari7

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 image

@squakez any suggestions would be helpful

tejaswari7 avatar Apr 12 '22 15:04 tejaswari7

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.

squakez avatar Apr 12 '22 15:04 squakez

I forgot to mention that the build for Golang failed!! image (1)

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

tejaswari7 avatar Apr 12 '22 15:04 tejaswari7

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.

haanhvu avatar Apr 12 '22 15:04 haanhvu

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

squakez avatar Apr 13 '22 07:04 squakez

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!!

tejaswari7 avatar Apr 13 '22 17:04 tejaswari7

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!!

tejaswari7 avatar Apr 13 '22 17:04 tejaswari7

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!

github-actions[bot] avatar Jul 13 '22 00:07 github-actions[bot]

Done in https://github.com/apache/camel-k-examples/tree/main/generic-examples/traits/health

squakez avatar Dec 15 '22 09:12 squakez