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

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

commit c47e751d71dbae0197ae3f8895c26042778ed0a3
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Nov 28 14:45:47 2022 +0100

    Added repeatCount parameter to timer source Kamelet
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../src/main/resources/kamelets/timer-source.kamelet.yaml            | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/timer-source.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/timer-source.kamelet.yaml
index f0414c18..f97b3f05 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/timer-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/timer-source.kamelet.yaml
@@ -51,6 +51,10 @@ spec:
         description: The content type of the generated message.
         type: string
         default: text/plain
+      repeatCount:
+        title: Repeat Count
+        description: Specifies a maximum limit of number of fires
+        type: integer
   dependencies:
     - "camel:core"
     - "camel:timer"
@@ -60,6 +64,7 @@ spec:
       uri: timer:tick
       parameters:
         period: "{{period}}"
+        repeatCount: "{{?repeatCount}}"
       steps:
         - set-body:
             constant: "{{message}}"

Reply via email to