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

Health trait usage example #3141

Closed
squakez opened this issue Mar 29, 2022 · 12 comments
Closed

Health trait usage example #3141

squakez opened this issue Mar 29, 2022 · 12 comments
Labels
area/documentation Documentation task area/traits good first issue Does not require full understanding of the codebase status/never-stale

Comments

@squakez
Copy link
Contributor

squakez commented Mar 29, 2022

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 squakez added good first issue Does not require full understanding of the codebase area/documentation Documentation task area/traits labels Mar 29, 2022
@pankaj892
Copy link

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

@squakez
Copy link
Contributor Author

squakez commented Mar 29, 2022

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

@tejaswari7
Copy link

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

@tejaswari7
Copy link

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

@squakez
Copy link
Contributor Author

squakez commented Apr 12, 2022

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.

@tejaswari7
Copy link

tejaswari7 commented Apr 12, 2022

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

@haanhvu
Copy link
Contributor

haanhvu commented Apr 12, 2022

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.

@squakez
Copy link
Contributor Author

squakez commented Apr 13, 2022

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

@tejaswari7
Copy link

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
Copy link

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

@github-actions
Copy link
Contributor

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!

@squakez
Copy link
Contributor Author

squakez commented Dec 15, 2022

@squakez squakez closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation task area/traits good first issue Does not require full understanding of the codebase status/never-stale
Projects
None yet
Development

No branches or pull requests

5 participants