You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ts...@apache.org on 2022/08/22 03:29:45 UTC

[camel-k-examples] branch main updated (3134825 -> 27d3f15)

This is an automated email from the ASF dual-hosted git repository.

tsato pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git


    from 3134825  update readme
     new 4b308ba  fix broken links in Readme
     new 15a7ca2  fix broken link and typo
     new 51c8308  fix: add missing quotes
     new 9b3f374  improve comment
     new d3b2ba5  format files
     new 08acb50  improve error-handler example readme
     new 9f57149  improve KameletBindings example
     new a5b8de3  improve timer-source example
     new 95c7e51  improve timer-source-log-sink example
     new 27d3f15  provide more info and context for kamelet examples

The 10 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 generic-examples/kamelets/README.md                | 28 +++++++++++++++-
 generic-examples/kamelets/chuck-norris/chuck.xml   |  6 ++--
 generic-examples/kamelets/chuck-norris/readme.md   |  6 ++--
 .../error-handler/error-handler.kamelet.yaml       |  4 +--
 .../incremental-id-source.kamelet.yaml             | 18 +++++-----
 .../kamelets/error-handler/log-sink.kamelet.yaml   |  4 +--
 generic-examples/kamelets/error-handler/readme.md  | 10 ++++--
 .../kamelets/kameletbindings/README.md             | 39 ++++++++++++++++++++++
 .../kamelets/kameletbindings/kb-env-vars.yaml      |  2 +-
 .../timer-source-log-sink/log-sink.kamelet.yaml    |  2 +-
 .../kamelets/timer-source-log-sink/readme.md       | 17 ++++++----
 .../timer-source.kamelet.yaml                      |  6 ++--
 generic-examples/kamelets/timer-source/readme.md   | 14 ++++----
 .../timer-source/timer-source.kamelet.yaml         |  6 ++--
 14 files changed, 116 insertions(+), 46 deletions(-)


[camel-k-examples] 02/10: fix broken link and typo

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit 15a7ca2c2128403d814e1ac834a67cde5c4f99ae
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Thu Aug 18 11:45:55 2022 +0100

    fix broken link and typo
---
 generic-examples/kamelets/error-handler/readme.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/generic-examples/kamelets/error-handler/readme.md b/generic-examples/kamelets/error-handler/readme.md
index 609b896..74322a9 100644
--- a/generic-examples/kamelets/error-handler/readme.md
+++ b/generic-examples/kamelets/error-handler/readme.md
@@ -1,8 +1,8 @@
 # Kamelets Binding Error Handler example
-This example shows how to create a simple _source_ `Kamelet` which sends periodically events (and certain failures). The events are consumed by a log _sink_ in a `KameletBinding`. With the support of the `ErrorHandler` we will be able to redirect all errors to a `Sink` _error-handler_ `Kamelet` whose goal is to store the events in a `Kafka` topic and provide a nice log notifying us about the error happened.
+This example shows how to create a simple _source_ `Kamelet` which periodically sends events (and certain failures). The events are consumed by a log _sink_ in a `KameletBinding`. With the support of the `ErrorHandler`, we will redirect all errors to a `Sink` _error-handler_ `Kamelet` that first stores the events in a `Kafka` topic and then provide a nice log notifying us about the error that occurred.
 
 ## Incremental ID Source Kamelet
-First of all, you must install the _incremental-id-source_ Kamelet defined in `incremental-id-source.kamelet.yaml` file. This source will emit events every second with an autoincrement counter that will be forced to fail when the number 0 is caught. With this trick, we will simulate possible event faults.
+First of all, you must install the _incremental-id-source_ Kamelet defined in `incremental-id-source.kamelet.yaml` file. This source will emit events every second with an autoincrement counter that will be forced to fail when the number 0 is present in the data. With this trick, we will simulate possible event faults.
 ```
 $ kubectl apply -f incremental-id-source.kamelet.yaml
 ```
@@ -93,6 +93,7 @@ We can now create a `KameletBinding` which is started by the _incremental-id-sou
           name: error-handler
         properties:
           message: "ERROR!"
+          ...
       parameters:
         maximumRedeliveries: 1
         redeliveryDelay: 2000
@@ -111,7 +112,7 @@ As soon as the `Integration` starts, it will log the events on the `ok` log chan
 
 ### Recover the errors from DLC
 
-If you're curious to know what was going on in the DLC side, you can use the example you found in [kafka sasl ssl consumer](../kafka/sasl_ssl/):
+If you're curious to know what was going on in the DLC side, you can use the example you found in [kafka sasl ssl consumer](../../kafka/sasl_ssl/):
 
 ```
 kamel run --config secret:kafka-props SaslSSLKafkaConsumer.java --dev


[camel-k-examples] 08/10: improve timer-source example

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit a5b8de32478988297cb687ad58560a1763d1f259
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Sat Aug 20 09:34:38 2022 +0100

    improve timer-source example
---
 generic-examples/kamelets/timer-source/readme.md           | 14 +++++++-------
 .../kamelets/timer-source/timer-source.kamelet.yaml        |  6 +++---
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/generic-examples/kamelets/timer-source/readme.md b/generic-examples/kamelets/timer-source/readme.md
index 25d27fd..8124f70 100644
--- a/generic-examples/kamelets/timer-source/readme.md
+++ b/generic-examples/kamelets/timer-source/readme.md
@@ -35,14 +35,14 @@ As soon as the integration starts, you will be able to log the timer source even
 ```
 $ kamel log usage
 
-[1] Monitoring pod usage-785d65897b-5jdvp
+[1] Monitoring pod usage-779f56b57dd-sqxrh
 ...
-[1] 2020-10-23 12:51:19,724 INFO  [route1] (Camel (camel-1) thread #0 - timer://tick) Hello Kamelets
-[1] 2020-10-23 12:51:20,681 INFO  [route1] (Camel (camel-1) thread #0 - timer://tick) Hello Kamelets
-[1] 2020-10-23 12:51:21,682 INFO  [route1] (Camel (camel-1) thread #0 - timer://tick) Hello Kamelets
-[1] 2020-10-23 12:51:22,681 INFO  [route1] (Camel (camel-1) thread #0 - timer://tick) Hello Kamelets
-[1] 2020-10-23 12:51:23,684 INFO  [route1] (Camel (camel-1) thread #0 - timer://tick) Hello Kamelets
-[1] 2020-10-23 12:51:24,682 INFO  [route1] (Camel (camel-1) thread #0 - timer://tick) Hello Kamelets
+[1] 2022-08-20 08:20:57,927 INFO  [route1] (Camel (camel-1) thread #1 - timer://tick) Hello Kamelets
+[1] 2022-08-20 08:20:58,927 INFO  [route1] (Camel (camel-1) thread #1 - timer://tick) Hello Kamelets
+[1] 2022-08-20 08:20:59,927 INFO  [route1] (Camel (camel-1) thread #1 - timer://tick) Hello Kamelets
+[1] 2022-08-20 08:21:00,928 INFO  [route1] (Camel (camel-1) thread #1 - timer://tick) Hello Kamelets
+[1] 2022-08-20 08:21:01,927 INFO  [route1] (Camel (camel-1) thread #1 - timer://tick) Hello Kamelets
+[1] 2022-08-20 08:21:02,928 INFO  [route1] (Camel (camel-1) thread #1 - timer://tick) Hello Kamelets
 ....
 ```
 ## Timer Source KameletBinding
diff --git a/generic-examples/kamelets/timer-source/timer-source.kamelet.yaml b/generic-examples/kamelets/timer-source/timer-source.kamelet.yaml
index 64759fa..1bc4304 100644
--- a/generic-examples/kamelets/timer-source/timer-source.kamelet.yaml
+++ b/generic-examples/kamelets/timer-source/timer-source.kamelet.yaml
@@ -49,6 +49,6 @@ spec:
       parameters:
         period: "{{period}}"
       steps:
-      - set-body:
-          constant: "{{message}}"
-      - to: "kamelet:sink"
+        - set-body:
+            constant: "{{message}}"
+        - to: "kamelet:sink"


[camel-k-examples] 07/10: improve KameletBindings example

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit 9f571499e468871b103cda2f99d3384607e963d3
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Fri Aug 19 22:48:55 2022 +0100

    improve KameletBindings example
---
 .../kamelets/kameletbindings/README.md             | 39 ++++++++++++++++++++++
 .../kamelets/kameletbindings/kb-env-vars.yaml      |  2 +-
 2 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/generic-examples/kamelets/kameletbindings/README.md b/generic-examples/kamelets/kameletbindings/README.md
index 9e2ba04..487c721 100644
--- a/generic-examples/kamelets/kameletbindings/README.md
+++ b/generic-examples/kamelets/kameletbindings/README.md
@@ -1,3 +1,42 @@
 # KameletBindings examples
 
 Find useful examples about how to use KameletBindings.
+
+## Understanding the examples
+- [env-var-writer.kamelet.yaml](./env-var-writer.kamelet.yaml): sink kamelet, logs specified env variables.
+- [kb-env-vars.yaml](./kb-env-vars.yaml): kamelet binding, connects the _env-var-writer_ kamelet directly to a Camel URI, adds env variables to the integration container using the `environment` trait.
+- [kb-log-trait-annotation.yaml](./kb-log-trait-annotation.yaml): kamelet binding, connects two Camel URIs, uses the `logging` trait to customize the integration behaviour.
+
+## Running the examples
+### Timer-to-Log kamelet binding
+First, we apply the kamelet used in this binding:
+```
+kubectl apply -f env-var-writer.kamelet.yaml
+```
+
+Next, we apply the kamelet binding
+```
+kubectl apply -f kb-env-vars.yaml
+```
+A _timer-to-log_ integration is created that implements the binding. To view the logs, run:
+```
+kamel log timer-to-log
+...
+[1] 2022-08-18 22:25:22,083 INFO  [bar] (Camel (camel-1) thread #1 - timer://foo) Exchange[ExchangePattern: InOnly, BodyType: String, Body: value1 / value2]
+[1] 2022-08-18 22:25:23,083 INFO  [bar] (Camel (camel-1) thread #1 - timer://foo) Exchange[ExchangePattern: InOnly, BodyType: String, Body: value1 / value2]
+...
+```
+
+### Timer-2-Log-Annotation kamelet binding
+Apply the kamelet binding:
+```
+kubectl apply -f kb-log-trait-annotation.yaml
+```
+A _timer-2-log-annotation_ integration is created that implements the binding. You should see information logged at the `DEBUG` level. The messages should NOT use color. To view the logs:
+```
+kamel log timer-2-log-annotation
+...
+[1] 2022-08-19 12:38:46,871 DEBUG [org.apa.cam.pro.SendProcessor] (Camel (camel-1) thread #1 - timer://foo) >>>> log://bar Exchange[]
+[1] 2022-08-19 12:38:46,871 INFO  [bar] (Camel (camel-1) thread #1 - timer://foo) Exchange[ExchangePattern: InOnly, BodyType: null, Body: [Body is null]]
+...
+```
diff --git a/generic-examples/kamelets/kameletbindings/kb-env-vars.yaml b/generic-examples/kamelets/kameletbindings/kb-env-vars.yaml
index 4ce9e5a..c0b8bc6 100644
--- a/generic-examples/kamelets/kameletbindings/kb-env-vars.yaml
+++ b/generic-examples/kamelets/kameletbindings/kb-env-vars.yaml
@@ -19,7 +19,7 @@
 # kubectl apply -f env-var-writer.kamelet.yaml
 #
 # Apply kamelet binding
-# kubect apply -f kb-env-vars.yaml
+# kubectl apply -f kb-env-vars.yaml
 # 
 apiVersion: camel.apache.org/v1alpha1
 kind: KameletBinding


[camel-k-examples] 01/10: fix broken links in Readme

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit 4b308bac6157e7184b6aaf36ad5e55f3d9ed8c30
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Fri Aug 12 12:35:36 2022 +0100

    fix broken links in Readme
---
 generic-examples/kamelets/chuck-norris/readme.md | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/generic-examples/kamelets/chuck-norris/readme.md b/generic-examples/kamelets/chuck-norris/readme.md
index ddeabcf..e02f312 100644
--- a/generic-examples/kamelets/chuck-norris/readme.md
+++ b/generic-examples/kamelets/chuck-norris/readme.md
@@ -30,10 +30,8 @@ $ 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].
+If you hit any problem using Camel or have some feedback, then please see the [community support page](https://camel.apache.org/community/support/) and let us know.
 
-We also love contributors, so
-https://camel.apache.org/community/contributing/[get involved] :-)
+We also love contributors, so [get involved](https://camel.apache.org/community/contributing/) :-)
 
 The Camel riders!


[camel-k-examples] 09/10: improve timer-source-log-sink example

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit 95c7e518b09d11218da90454b51572b17d425f72
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Sat Aug 20 10:07:39 2022 +0100

    improve timer-source-log-sink example
---
 .../timer-source-log-sink/log-sink.kamelet.yaml         |  2 +-
 .../kamelets/timer-source-log-sink/readme.md            | 17 ++++++++++-------
 .../timer-source-log-sink/timer-source.kamelet.yaml     |  6 +++---
 3 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/generic-examples/kamelets/timer-source-log-sink/log-sink.kamelet.yaml b/generic-examples/kamelets/timer-source-log-sink/log-sink.kamelet.yaml
index 399341e..ee0766c 100644
--- a/generic-examples/kamelets/timer-source-log-sink/log-sink.kamelet.yaml
+++ b/generic-examples/kamelets/timer-source-log-sink/log-sink.kamelet.yaml
@@ -31,4 +31,4 @@ spec:
     from:
       uri: kamelet:source
       steps:
-      - to: "log:sink"
+        - to: "log:sink"
diff --git a/generic-examples/kamelets/timer-source-log-sink/readme.md b/generic-examples/kamelets/timer-source-log-sink/readme.md
index 4d4d671..3948acd 100644
--- a/generic-examples/kamelets/timer-source-log-sink/readme.md
+++ b/generic-examples/kamelets/timer-source-log-sink/readme.md
@@ -2,9 +2,12 @@
 
 This example shows how to create a simple timer `event source` and a log `event sink`. The timer events emitted are consumed by a simple logging connector which will print out those events.
 
+## Additional requirement for running this example
+- You should have Knative properly installed on your cluster ([see installation guide](https://knative.dev/docs/install/))
+
 ## Create events source and sink
 
-Let's start by creating the timer event source and log event sink as `kamelet`s.
+Let's start by creating the timer event source and log event sink as `kamelets`.
 ```
 $ kubectl apply -f timer-source.kamelet.yaml
 $ kubectl apply -f log-sink.kamelet.yaml
@@ -52,11 +55,11 @@ After a while you will be able to watch the event consumed by the underlying `lo
 ```
 $ kamel log log-event-sink
 
-[1] Monitoring pod log-event-sink-wjm9w-deployment-cf4f49655-xwq82
+[1] Monitoring pod log-event-sink-00001-deployment-7cf6d488c9-2nbx8
 ...
-[1] 2020-10-23 14:28:11,878 INFO  [sink] (vert.x-worker-thread-1) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
-[1] 2020-10-23 14:28:11,877 INFO  [sink] (vert.x-worker-thread-0) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
-[1] 2020-10-23 14:28:12,381 INFO  [sink] (vert.x-worker-thread-2) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
-[1] 2020-10-23 14:28:13,276 INFO  [sink] (vert.x-worker-thread-3) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
-[1] 2020-10-23 14:28:14,299 INFO  [sink] (vert.x-worker-thread-4) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
+[1] 2022-08-20 08:56:01,284 INFO  [sink] (executor-thread-0) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
+[1] 2022-08-20 08:56:02,284 INFO  [sink] (executor-thread-0) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
+[1] 2022-08-20 08:56:03,285 INFO  [sink] (executor-thread-0) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
+[1] 2022-08-20 08:56:04,286 INFO  [sink] (executor-thread-0) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
+[1] 2022-08-20 08:56:05,285 INFO  [sink] (executor-thread-0) Exchange[ExchangePattern: InOnly, BodyType: byte[], Body: Hello world!]
 ```
\ No newline at end of file
diff --git a/generic-examples/kamelets/timer-source-log-sink/timer-source.kamelet.yaml b/generic-examples/kamelets/timer-source-log-sink/timer-source.kamelet.yaml
index 0428c77..1bc4304 100644
--- a/generic-examples/kamelets/timer-source-log-sink/timer-source.kamelet.yaml
+++ b/generic-examples/kamelets/timer-source-log-sink/timer-source.kamelet.yaml
@@ -49,6 +49,6 @@ spec:
       parameters:
         period: "{{period}}"
       steps:
-      - set-body:
-          constant: "{{message}}"
-      - to: "kamelet:sink"
\ No newline at end of file
+        - set-body:
+            constant: "{{message}}"
+        - to: "kamelet:sink"


[camel-k-examples] 05/10: format files

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit d3b2ba57caab5e5321c3328878ff77eaf39acb40
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Thu Aug 18 11:57:26 2022 +0100

    format files
---
 generic-examples/kamelets/chuck-norris/chuck.xml       |  6 +++---
 .../error-handler/incremental-id-source.kamelet.yaml   | 18 +++++++++---------
 .../kamelets/error-handler/log-sink.kamelet.yaml       |  4 ++--
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/generic-examples/kamelets/chuck-norris/chuck.xml b/generic-examples/kamelets/chuck-norris/chuck.xml
index 0d2a2e4..2400f58 100644
--- a/generic-examples/kamelets/chuck-norris/chuck.xml
+++ b/generic-examples/kamelets/chuck-norris/chuck.xml
@@ -14,6 +14,6 @@
     limitations under the License.
 -->
 <route>
-  <from uri="kamelet:chuck-norris-source"/>
-  <log message="${body}"/>
-</route>
+  <from uri="kamelet:chuck-norris-source" />
+  <log message="${body}" />
+</route>
\ No newline at end of file
diff --git a/generic-examples/kamelets/error-handler/incremental-id-source.kamelet.yaml b/generic-examples/kamelets/error-handler/incremental-id-source.kamelet.yaml
index 53c35f0..e0bbc90 100644
--- a/generic-examples/kamelets/error-handler/incremental-id-source.kamelet.yaml
+++ b/generic-examples/kamelets/error-handler/incremental-id-source.kamelet.yaml
@@ -40,12 +40,12 @@ spec:
       parameters:
         period: "{{period}}"
       steps:
-      - set-body:
-          simple: "Producing message #${exchangeProperty.CamelTimerCounter}"
-      - choice:
-          when:
-          - simple: "${bodyAs(String)} contains 0"
-            steps:
-            - set-body:
-                simple: "${mandatoryBodyAs(Boolean)}"
-      - to: "kamelet:sink"                
+        - set-body:
+            simple: "Producing message #${exchangeProperty.CamelTimerCounter}"
+        - choice:
+            when:
+              - simple: "${bodyAs(String)} contains 0"
+                steps:
+                  - set-body:
+                      simple: "${mandatoryBodyAs(Boolean)}"
+        - to: "kamelet:sink"
diff --git a/generic-examples/kamelets/error-handler/log-sink.kamelet.yaml b/generic-examples/kamelets/error-handler/log-sink.kamelet.yaml
index 6a0f815..2c178fd 100644
--- a/generic-examples/kamelets/error-handler/log-sink.kamelet.yaml
+++ b/generic-examples/kamelets/error-handler/log-sink.kamelet.yaml
@@ -24,9 +24,9 @@ metadata:
 spec:
   definition:
     title: "Regular Log Sink"
-    description: "Consume events from a channel"  
+    description: "Consume events from a channel"
   template:
     from:
       uri: kamelet:source
       steps:
-      - to: "log:ok"
+        - to: "log:ok"


[camel-k-examples] 06/10: improve error-handler example readme

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit 08acb506e67c06306942e14cb0a631e4ee8d143a
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Thu Aug 18 12:27:54 2022 +0100

    improve error-handler example readme
---
 generic-examples/kamelets/error-handler/readme.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/generic-examples/kamelets/error-handler/readme.md b/generic-examples/kamelets/error-handler/readme.md
index 74322a9..e80ccdb 100644
--- a/generic-examples/kamelets/error-handler/readme.md
+++ b/generic-examples/kamelets/error-handler/readme.md
@@ -1,6 +1,9 @@
 # Kamelets Binding Error Handler example
 This example shows how to create a simple _source_ `Kamelet` which periodically sends events (and certain failures). The events are consumed by a log _sink_ in a `KameletBinding`. With the support of the `ErrorHandler`, we will redirect all errors to a `Sink` _error-handler_ `Kamelet` that first stores the events in a `Kafka` topic and then provide a nice log notifying us about the error that occurred.
 
+## Additional Requirements for running this example
+- A Kafka broker containing a Kafka Topic, and a Service Account with access to the topic. In this example, we shall name the Topic `my-first-test`.
+
 ## Incremental ID Source Kamelet
 First of all, you must install the _incremental-id-source_ Kamelet defined in `incremental-id-source.kamelet.yaml` file. This source will emit events every second with an autoincrement counter that will be forced to fail when the number 0 is present in the data. With this trick, we will simulate possible event faults.
 ```


[camel-k-examples] 04/10: improve comment

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit 9b3f374a3ca928c84cb11ab4c7ecc5d116fa4043
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Thu Aug 18 11:55:00 2022 +0100

    improve comment
---
 generic-examples/kamelets/error-handler/error-handler.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generic-examples/kamelets/error-handler/error-handler.kamelet.yaml b/generic-examples/kamelets/error-handler/error-handler.kamelet.yaml
index ee7515d..c987277 100644
--- a/generic-examples/kamelets/error-handler/error-handler.kamelet.yaml
+++ b/generic-examples/kamelets/error-handler/error-handler.kamelet.yaml
@@ -59,7 +59,7 @@ spec:
     from:
       uri: kamelet:source
       steps:
-      # First step: send to the DLC for future processing
+      # First step: send to the DLC (dead letter channel) for future processing
       - to:
           uri: kafka:{{kafka-topic}}
           parameters:


[camel-k-examples] 10/10: provide more info and context for kamelet examples

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit 27d3f1513233559a5af2136650054fbbb150fe54
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Sat Aug 20 11:13:16 2022 +0100

    provide more info and context for kamelet examples
---
 generic-examples/kamelets/README.md | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/generic-examples/kamelets/README.md b/generic-examples/kamelets/README.md
index 819f173..f0f2a5c 100644
--- a/generic-examples/kamelets/README.md
+++ b/generic-examples/kamelets/README.md
@@ -1,3 +1,29 @@
 # Kamelets Camel K examples
 
-Find useful examples about how to use Kamelets.
\ No newline at end of file
+Find useful examples about how to use Kamelets.
+
+To learn more about Kamelets, see the [Kamelets Guide](https://camel.apache.org/camel-k/next/kamelets/kamelets.html) <br>
+You can find more information about Apache Camel and Apache Camel K on the [official Camel website](https://camel.apache.org)
+
+## Before you begin
+
+Read the general instructions in the [root README.md file](/README.md) for setting up your environment and the Kubernetes cluster before looking at this example.
+
+Make sure you've read the [installation instructions](https://camel.apache.org/camel-k/latest/installation/installation.html) for your specific
+cluster before starting the example.
+
+## Understanding the Examples
+The examples are grouped into the following sub-directories:
+- [chuck-norris](./chuck-norris/): contains quick demonstration on how to use an already existing kamelet in a Camel application.
+- [error-handler](./error-handler/): contains examples on how to:
+    - create event source kamelet and sink kamelet
+    - bind the source and sink kamelets using KameletBinding
+    - handle error arising from sending events
+- [kameletbindings](./kameletbindings/): contains more examples on KamletBindings and how to use `traits` to customize your integration.
+- [timer-source](./timer-source/): contains examples on how to: 
+    - create and use a timer source kamelet
+    - bind a source kamelet to a Knative destination using KamletBinding
+- [timer-source-log-sink](./timer-source-log-sink/): 
+    - create and use a timer source kamelet
+    - bind a source kamelet to a Knative destination using KamletBinding
+    - create a log sink kamlet and bind it to the Knative destination using KamletBinding
\ No newline at end of file


[camel-k-examples] 03/10: fix: add missing quotes

Posted by ts...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git

commit 51c83085341b1ff89a8069992176ba3cc92c5b68
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Thu Aug 18 11:53:36 2022 +0100

    fix: add missing quotes
---
 generic-examples/kamelets/error-handler/error-handler.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generic-examples/kamelets/error-handler/error-handler.kamelet.yaml b/generic-examples/kamelets/error-handler/error-handler.kamelet.yaml
index 857a208..ee7515d 100644
--- a/generic-examples/kamelets/error-handler/error-handler.kamelet.yaml
+++ b/generic-examples/kamelets/error-handler/error-handler.kamelet.yaml
@@ -66,7 +66,7 @@ spec:
             brokers: "{{kafka-brokers}}"
             security-protocol: SASL_SSL
             sasl-mechanism: PLAIN
-            sasl-jaas-config: "org.apache.kafka.common.security.plain.PlainLoginModule required username={{kafka-service-account-id}} password={{kafka-service-account-secret}};"
+            sasl-jaas-config: "org.apache.kafka.common.security.plain.PlainLoginModule required username='{{kafka-service-account-id}}' password='{{kafka-service-account-secret}}';"
       # Log an error message to notify about the failure
       - set-body:
           constant: "{{log-message}} - worry not, the event is stored in the DLC"