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/05/10 13:09:25 UTC

[camel-kamelets] branch main updated (e158130 -> ee60489)

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

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


    from e158130  Regen
     new f36cfd2  Added Json Serialize Action
     new 2fc359a  Added Json Serialize Action to catalog
     new 786afa1  Added Json Serialize Action
     new ee60489  Added Json Serialize Action

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:
 ...lue-to-key-action.svg => json-serialize-action.svg} |  0
 docs/modules/ROOT/nav.adoc                             |  3 ++-
 ...erialize-action.adoc => json-serialize-action.adoc} | 18 +++++++++---------
 ....kamelet.yaml => json-serialize-action.kamelet.yaml | 13 +++++++------
 .../kamelets/json-serialize-action.kamelet.yaml        | 13 +++++++------
 5 files changed, 25 insertions(+), 22 deletions(-)
 copy docs/modules/ROOT/assets/images/kamelets/{value-to-key-action.svg => json-serialize-action.svg} (100%)
 copy docs/modules/ROOT/pages/{json-deserialize-action.adoc => json-serialize-action.adoc} (62%)
 copy json-deserialize-action.kamelet.yaml => json-serialize-action.kamelet.yaml (95%)
 copy json-deserialize-action.kamelet.yaml => library/camel-kamelets-catalog/src/main/resources/kamelets/json-serialize-action.kamelet.yaml (95%)

[camel-kamelets] 03/04: Added Json Serialize Action

Posted by ac...@apache.org.
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 786afa19aa6a05abf22f69578f508ae06dce6620
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 10 14:58:18 2021 +0200

    Added Json Serialize Action
---
 docs/modules/ROOT/nav.adoc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 3498f88..7298777 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -46,8 +46,9 @@
 * xref:ROOT:infinispan-source.adoc[image:kamelets/infinispan-source.svg[] Infinispan Source]
 * xref:ROOT:insert-field-action.adoc[image:kamelets/insert-field-action.svg[] Insert Field Action]
 * xref:ROOT:insert-header-action.adoc[image:kamelets/insert-header-action.svg[] Insert Header Action]
-* xref:ROOT:jira-source.adoc[image:kamelets/jira-source.svg[] Jira Source]
+* xref:ROOT:jira-source.adoc[image:kamelets/jira-source.svg[] Jira Source]<
 * xref:ROOT:json-deserialize-action.adoc[image:kamelets/json-deserialize-action.svg[] Json Deserialize Action]
+* xref:ROOT:json-serialize-action.adoc[image:kamelets/json-serialize-action.svg[] Json Serialize Action]
 * xref:ROOT:kafka-not-secured-sink.adoc[image:kamelets/kafka-not-secured-sink.svg[] Kafka Not Secured Sink]
 * xref:ROOT:kafka-not-secured-source.adoc[image:kamelets/kafka-not-secured-source.svg[] Kafka Not Secured Source]
 * xref:ROOT:kafka-sink.adoc[image:kamelets/kafka-sink.svg[] Kafka Sink]

[camel-kamelets] 02/04: Added Json Serialize Action to catalog

Posted by ac...@apache.org.
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 2fc359abdf5094cc51d0c38eff92653a2357fff0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 10 14:57:47 2021 +0200

    Added Json Serialize Action to catalog
---
 .../kamelets/json-serialize-action.kamelet.yaml    | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/json-serialize-action.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/json-serialize-action.kamelet.yaml
new file mode 100644
index 0000000..6caa9c4
--- /dev/null
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/json-serialize-action.kamelet.yaml
@@ -0,0 +1,31 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: json-serialize-action
+  labels:
+    camel.apache.org/kamelet.type: "action"
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Actions"
+spec:
+  definition:
+    title: "Json Serialize Action"
+    description: "Serialize payload to JSON"
+    type: object
+  dependencies:
+  - "github:apache.camel-kamelets:camel-kamelets-utils:main-SNAPSHOT"
+  - "camel:kamelet"
+  - "camel:core"
+  - "camel:jackson"
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - marshal:
+          json: 
+            library: Jackson
+            unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
+      - set-header:
+          name: "Content-Type"
+          constant: "application/json"

[camel-kamelets] 01/04: Added Json Serialize Action

Posted by ac...@apache.org.
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 f36cfd2f3f5c510cc713080c561d76753445c070
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 10 14:57:15 2021 +0200

    Added Json Serialize Action
---
 json-serialize-action.kamelet.yaml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/json-serialize-action.kamelet.yaml b/json-serialize-action.kamelet.yaml
new file mode 100644
index 0000000..6caa9c4
--- /dev/null
+++ b/json-serialize-action.kamelet.yaml
@@ -0,0 +1,31 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: json-serialize-action
+  labels:
+    camel.apache.org/kamelet.type: "action"
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Actions"
+spec:
+  definition:
+    title: "Json Serialize Action"
+    description: "Serialize payload to JSON"
+    type: object
+  dependencies:
+  - "github:apache.camel-kamelets:camel-kamelets-utils:main-SNAPSHOT"
+  - "camel:kamelet"
+  - "camel:core"
+  - "camel:jackson"
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - marshal:
+          json: 
+            library: Jackson
+            unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
+      - set-header:
+          name: "Content-Type"
+          constant: "application/json"

[camel-kamelets] 04/04: Added Json Serialize Action

Posted by ac...@apache.org.
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 ee60489167c24dbc314724320c6b151ec5655bc5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 10 14:58:37 2021 +0200

    Added Json Serialize Action
---
 .../images/kamelets/json-serialize-action.svg      | 59 ++++++++++++++++++++++
 docs/modules/ROOT/pages/json-serialize-action.adoc | 58 +++++++++++++++++++++
 2 files changed, 117 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/json-serialize-action.svg b/docs/modules/ROOT/assets/images/kamelets/json-serialize-action.svg
new file mode 100644
index 0000000..fa06352
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/json-serialize-action.svg
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   viewBox="0 -256 1792 1792"
+   id="svg3025"
+   version="1.1"
+   inkscape:version="0.48.3.1 r9886"
+   width="100%"
+   height="100%"
+   sodipodi:docname="cog_font_awesome.svg">
+  <metadata
+     id="metadata3035">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs3033" />
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="640"
+     inkscape:window-height="480"
+     id="namedview3031"
+     showgrid="false"
+     inkscape:zoom="0.13169643"
+     inkscape:cx="896"
+     inkscape:cy="896"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="svg3025" />
+  <g
+     transform="matrix(1,0,0,-1,121.49153,1285.4237)"
+     id="g3027">
+    <path
+       d="m 1024,640 q 0,106 -75,181 -75,75 -181,75 -106,0 -181,-75 -75,-75 -75,-181 0,-106 75,-181 75,-75 181,-75 106,0 181,75 75,75 75,181 z m 512,109 V 527 q 0,-12 -8,-23 -8,-11 -20,-13 l -185,-28 q -19,-54 -39,-91 35,-50 107,-138 10,-12 10,-25 0,-13 -9,-23 -27,-37 -99,-108 -72,-71 -94,-71 -12,0 -26,9 l -138,108 q -44,-23 -91,-38 -16,-136 -29,-186 -7,-28 -36,-28 H 657 q -14,0 -24.5,8.5 Q 622,-111 621,-98 L 593,86 q -49,16 -90,37 L 362,16 Q 352,7 337,7 323,7 312,18 186,132 147,186 q -7 [...]
+       id="path3029"
+       inkscape:connector-curvature="0"
+       style="fill:currentColor" />
+  </g>
+</svg>
diff --git a/docs/modules/ROOT/pages/json-serialize-action.adoc b/docs/modules/ROOT/pages/json-serialize-action.adoc
new file mode 100644
index 0000000..8e62c64
--- /dev/null
+++ b/docs/modules/ROOT/pages/json-serialize-action.adoc
@@ -0,0 +1,58 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/json-serialize-action.svg[] Json Serialize Action
+
+*Provided by: "Apache Software Foundation"*
+
+Serialize payload to JSON
+
+== Configuration Options
+
+The Kamelet does not specify any configuration option.
+
+== Usage
+
+This section summarizes how the `json-serialize-action` can be used in various contexts.
+
+=== Knative Action
+
+The `json-serialize-action` Kamelet can be used as intermediate step in a binding.
+
+.json-serialize-action-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: json-serialize-action-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: timer-source
+    properties:
+      message: "Hello"
+  steps:
+  - ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: json-serialize-action
+  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 `json-serialize-action-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the action using the following command:
+
+[source,shell]
+----
+kubectl apply -f json-serialize-action-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT