You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/04/16 06:01:11 UTC

[camel-kamelets] branch master updated (3f35e9a -> 63a642a)

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

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


    from 3f35e9a  Added a PDF Action Kamelet
     new ee14e6c  Added Cron Source Kamelet
     new 71a4a79  Added Cron Source Kamelet
     new e832bef  Added Cron Source Kamelet
     new 63a642a  Added Cron Source Kamelet

The 4 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:
 cron-source.kamelet.yaml                           | 43 ++++++++++++++++++++++
 .../ROOT/assets/images/kamelets/cron-source.svg    |  1 +
 docs/modules/ROOT/nav.adoc                         |  1 +
 .../pages/{timer-source.adoc => cron-source.adoc}  | 23 ++++++------
 4 files changed, 57 insertions(+), 11 deletions(-)
 create mode 100644 cron-source.kamelet.yaml
 create mode 100644 docs/modules/ROOT/assets/images/kamelets/cron-source.svg
 copy docs/modules/ROOT/pages/{timer-source.adoc => cron-source.adoc} (62%)

[camel-kamelets] 03/04: Added Cron Source Kamelet

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

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

commit e832bef32afea6abce3b15ef281dc6e1bd1d904c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 15 16:22:32 2021 +0200

    Added Cron Source Kamelet
---
 docs/modules/ROOT/nav.adoc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index ec36b44..347344a 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -14,6 +14,7 @@
 * xref:ROOT:azure-storage-blob-source.adoc[image:kamelets/azure-storage-blob-source.svg[] Azure Storage Blob Source]
 * xref:ROOT:azure-storage-queue-sink.adoc[image:kamelets/azure-storage-queue-sink.svg[] Azure Storage Queue Sink]
 * xref:ROOT:bitcoin-source.adoc[image:kamelets/bitcoin-source.svg[] Bitcoin Source]
+* xref:ROOT:cron-source.adoc[image:kamelets/cron-source.svg[] Cron Source]
 * xref:ROOT:dropbox-sink.adoc[image:kamelets/dropbox-sink.svg[] Dropbox Sink]
 * xref:ROOT:dropbox-source.adoc[image:kamelets/dropbox-source.svg[] Dropbox Source]
 * xref:ROOT:earthquake-source.adoc[image:kamelets/earthquake-source.svg[] Earthquake Source]

[camel-kamelets] 04/04: Added Cron Source Kamelet

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

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

commit 63a642a5f0e8d057f506c58f1b69ef38ecacdefb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 15 16:22:43 2021 +0200

    Added Cron Source Kamelet
---
 .../ROOT/assets/images/kamelets/cron-source.svg    |  1 +
 docs/modules/ROOT/pages/cron-source.adoc           | 62 ++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/cron-source.svg b/docs/modules/ROOT/assets/images/kamelets/cron-source.svg
new file mode 100644
index 0000000..0716e77
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/cron-source.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="2500" height="2500" viewBox="0 0 192.756 192.756"><g fill-rule="evenodd" clip-rule="evenodd"><path fill="#fff" d="M0 0h192.756v192.756H0V0z"/><path d="M42.16 103.072l5.901 1.496c-1.242 4.865-3.476 8.574-6.701 11.129s-7.167 3.832-11.826 3.832c-4.823 0-8.746-.982-11.767-2.947-3.021-1.965-5.322-4.811-6.898-8.537-1.576-3.725-2.365-7.727-2.365-12.002 0-4.663.89-8.73 2.669-12.202 1.779-3.472 4.312-6.108 7.597-7.91 3.285-1.802 6.9-2.704 10.847-2.70 [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/cron-source.adoc b/docs/modules/ROOT/pages/cron-source.adoc
new file mode 100644
index 0000000..7c491ed
--- /dev/null
+++ b/docs/modules/ROOT/pages/cron-source.adoc
@@ -0,0 +1,62 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/cron-source.svg[] Cron Source
+
+*Provided by: "Apache Software Foundation"*
+
+Send events at specific time.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `cron-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *message {empty}* *| Message| The message to generate| string| | `"hello world"`
+| *schedule {empty}* *| Cron Schedule| A cron expression that will be used to generate events| string| | `"0/3 10 * * * ?"`
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `cron-source` can be used in various contexts.
+
+=== Knative Source
+
+The `cron-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.cron-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: cron-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: cron-source
+    properties:
+      message: "hello world"
+      schedule: "0/3 10 * * * ?"
+  sink:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `cron-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f cron-source-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 01/04: Added Cron Source Kamelet

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

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

commit ee14e6cad71383d0a3b49c7e99cf398fb591532f
Author: Andrea Cosentino <an...@gmail.com>
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"

[camel-kamelets] 02/04: Added Cron Source Kamelet

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

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

commit 71a4a7971b2557387ef59ab47b34d6344eb613f9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 15 16:22:07 2021 +0200

    Added Cron Source Kamelet
---
 cron-source.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cron-source.kamelet.yaml b/cron-source.kamelet.yaml
index a607184..6e0266c 100644
--- a/cron-source.kamelet.yaml
+++ b/cron-source.kamelet.yaml
@@ -3,7 +3,7 @@ kind: Kamelet
 metadata:
   name: cron-source
   annotations:
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...]
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAwIiBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9IjAgMCAxOTIuNzU2IDE5Mi43NTYiPjxnIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDE5Mi43NTZ2MTkyLjc1NkgwVjB6Ii8+PHBhdGggZD0iTTQyLjE2IDEwMy4wNzJsNS45MDEgMS40OTZjLTEuMjQyIDQuODY1LTMuNDc2IDguNTc0LTYuNzAxIDExLjEyOXMtNy4xNjcgMy44MzItMTEuODI2IDMuODMyYy00LjgyMyAwLTguNzQ2LS45ODItMTEuNzY3LTIuOTQ3LT [...]
     camel.apache.org/provider: "Apache Software Foundation"
   labels:
     camel.apache.org/kamelet.type: "source"