This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 472d8b18c8a3bd3bf452818bb82331f82e999cca Author: Claus Ibsen <[email protected]> AuthorDate: Tue Jul 20 12:25:08 2021 +0200 Added chuck norris example --- examples/kamelets/chuck-norris/chuck.xml | 4 ++++ examples/kamelets/chuck-norris/readme.md | 39 ++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/examples/kamelets/chuck-norris/chuck.xml b/examples/kamelets/chuck-norris/chuck.xml new file mode 100644 index 0000000..cbb2f63 --- /dev/null +++ b/examples/kamelets/chuck-norris/chuck.xml @@ -0,0 +1,4 @@ +<route> + <from uri="kamelet:chuck-norris-source"/> + <log message="${body}"/> +</route> diff --git a/examples/kamelets/chuck-norris/readme.md b/examples/kamelets/chuck-norris/readme.md new file mode 100644 index 0000000..ddeabcf --- /dev/null +++ b/examples/kamelets/chuck-norris/readme.md @@ -0,0 +1,39 @@ +# Camel Example Kamelet Chuck Norris + +## Introduction + +This example shows how you can use an out of the box Kamelet with your Camel applications. + +This example uses the Chuck Norris Kamelet that periodically gets a joke from the Chuck Norris internet database. + +A Camel routes is _coded_ in the `chuck.xml` file using the XML DSL that uses the Kamelet, +and log the result from the Kamelet to the console. + +## Running the example + +Just run the integration via: +``` +$ kamel run chuck.xml +``` +You should be able to see the new integration running after some time: +``` +$ kamel get +NAME PHASE KIT +chuck Running kit-bu9d2r22hhmoa6qrtc2g +``` + +You can then show the logs of the running pod to see the Chuck Norris jokes: + +``` +$ kamel log chuck +``` + +## Help and contributions + +If you hit any problem using Camel or have some feedback, then please +https://camel.apache.org/community/support/[let us know]. + +We also love contributors, so +https://camel.apache.org/community/contributing/[get involved] :-) + +The Camel riders!
