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 c53d24b919f8cdef60e8a19c07b1295f5c95be5e
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Nov 28 14:43:05 2022 +0100

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

diff --git a/kamelets/timer-source.kamelet.yaml 
b/kamelets/timer-source.kamelet.yaml
index f0414c18..f97b3f05 100644
--- a/kamelets/timer-source.kamelet.yaml
+++ b/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