This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch cron-source in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 6cf4e80a91542e9b38610746503af2ec66e22126 Author: Andrea Cosentino <[email protected]> AuthorDate: Thu Apr 15 16:19:32 2021 +0200 Added Cron Source Kamelet --- cron-source.kamelet.yaml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/cron-source.kamelet.yaml b/cron-source.kamelet.yaml new file mode 100644 index 0000000..a607184 --- /dev/null +++ b/cron-source.kamelet.yaml @@ -0,0 +1,43 @@ +apiVersion: camel.apache.org/v1alpha1 +kind: Kamelet +metadata: + name: cron-source + annotations: + camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...] + camel.apache.org/provider: "Apache Software Foundation" + labels: + camel.apache.org/kamelet.type: "source" +spec: + definition: + title: "Cron Source" + description: |- + Send events at specific time. + required: + - schedule + - message + properties: + schedule: + title: Cron Schedule + description: A cron expression that will be used to generate events + type: string + example: "0/3 10 * * * ?" + message: + title: Message + description: The message to generate + type: string + example: hello world + types: + out: + mediaType: text/plain + dependencies: + - camel-quarkus:quartz + flow: + from: + uri: "cron:tick" + parameters: + schedule: "{{schedule}}" + steps: + - set-body: + constant: "{{message}}" + steps: + - to: "kamelet:sink"
