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/20 12:49:42 UTC
[camel-kamelets] branch main updated (c5ab247 -> eb5343e)
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 c5ab247 Added HTTP secured sink
new 1d453ee Added AWS Translate Action
new ce39462 AWS Translate added correct icon
new d0876e4 Added AWS Translate to Catalog
new 1db5dfc Added AWS Translate Action
new a4d3070 Added AWS Translate Action
new 6f2f887 Added AWS Translate Action
new eb5343e Added AWS Translate Action
The 7 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:
aws-translate-action.kamelet.yaml | 68 ++++++++++++++++++++++
.../images/kamelets/aws-translate-action.svg | 1 +
docs/modules/ROOT/nav.adoc | 1 +
...field-action.adoc => aws-translate-action.adoc} | 32 ++++++----
.../kamelets/aws-translate-action.kamelet.yaml | 68 ++++++++++++++++++++++
5 files changed, 158 insertions(+), 12 deletions(-)
create mode 100644 aws-translate-action.kamelet.yaml
create mode 100644 docs/modules/ROOT/assets/images/kamelets/aws-translate-action.svg
copy docs/modules/ROOT/pages/{extract-field-action.adoc => aws-translate-action.adoc} (52%)
create mode 100644 library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
[camel-kamelets] 02/07: AWS Translate added correct icon
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 ce394623228f30cb06c5ea302d66f9335a44f6a6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:13:00 2021 +0200
AWS Translate added correct icon
---
aws-translate-action.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aws-translate-action.kamelet.yaml b/aws-translate-action.kamelet.yaml
index afeebfe..d41f328 100644
--- a/aws-translate-action.kamelet.yaml
+++ b/aws-translate-action.kamelet.yaml
@@ -3,7 +3,7 @@ kind: Kamelet
metadata:
name: aws-translate-action
annotations:
- camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIyLjg3OSAxMjIuODgxIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMjIuODc5IDEyMi44ODEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGQ9Ik0xMDkuNDY3LDg5LjUwNWMwLjE4MiwwLDAuMzU5LDAuMDE5LDAuNTMxLDAuMDUzYzEuMT [...]
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIyLjg4IDg0LjgxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMjIuODggODQuODEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+LnN0MHtmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZD [...]
camel.apache.org/provider: "Apache Software Foundation"
camel.apache.org/kamelet.group: "AWS Translate"
labels:
[camel-kamelets] 01/07: Added AWS Translate 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 1d453ee2bbb849ea4b23dc2119cd88f1b6305435
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:05:55 2021 +0200
Added AWS Translate Action
---
aws-translate-action.kamelet.yaml | 67 +++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/aws-translate-action.kamelet.yaml b/aws-translate-action.kamelet.yaml
new file mode 100644
index 0000000..afeebfe
--- /dev/null
+++ b/aws-translate-action.kamelet.yaml
@@ -0,0 +1,67 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: aws-translate-action
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIyLjg3OSAxMjIuODgxIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMjIuODc5IDEyMi44ODEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGQ9Ik0xMDkuNDY3LDg5LjUwNWMwLjE4MiwwLDAuMzU5LDAuMDE5LDAuNTMxLDAuMDUzYzEuMT [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "AWS Translate"
+ labels:
+ camel.apache.org/kamelet.type: "action"
+spec:
+ definition:
+ title: "AWS Translate Action"
+ description: |-
+ Translate a text in a specific language
+ required:
+ - accessKey
+ - secretKey
+ - region
+ - sourceLanguage
+ - targetLanguage
+ type: object
+ properties:
+ accessKey:
+ title: Access Key
+ description: The access key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ secretKey:
+ title: Secret Key
+ description: The secret key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ region:
+ title: AWS Region
+ description: The AWS region to connect to.
+ type: string
+ example: eu-west-1
+ sourceLanguage:
+ title: Source Language
+ description: The source language of the translating text
+ type: string
+ example: it
+ targetLanguage:
+ title: Target Language
+ description: The target language of the translating text
+ type: string
+ example: en
+ dependencies:
+ - "camel:dns"
+ - "camel:kamelet"
+ flow:
+ from:
+ uri: "kamelet:source"
+ steps:
+ - to:
+ uri: "aws2-translate://translate"
+ parameters:
+ secretKey: "{{secretKey}}"
+ accessKey: "{{accessKey}}"
+ region: "{{region}}"
+ sourceLanguage: "{{sourceLanguage}}"
+ targetLanguage: "{{targetLanguage}}"
[camel-kamelets] 03/07: Added AWS Translate 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 d0876e4a7d45933f10dc67dd935d64a33953d189
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:13:25 2021 +0200
Added AWS Translate to Catalog
---
.../kamelets/aws-translate-action.kamelet.yaml | 67 ++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
new file mode 100644
index 0000000..d41f328
--- /dev/null
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
@@ -0,0 +1,67 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: aws-translate-action
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIyLjg4IDg0LjgxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMjIuODggODQuODEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+LnN0MHtmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZD [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "AWS Translate"
+ labels:
+ camel.apache.org/kamelet.type: "action"
+spec:
+ definition:
+ title: "AWS Translate Action"
+ description: |-
+ Translate a text in a specific language
+ required:
+ - accessKey
+ - secretKey
+ - region
+ - sourceLanguage
+ - targetLanguage
+ type: object
+ properties:
+ accessKey:
+ title: Access Key
+ description: The access key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ secretKey:
+ title: Secret Key
+ description: The secret key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ region:
+ title: AWS Region
+ description: The AWS region to connect to.
+ type: string
+ example: eu-west-1
+ sourceLanguage:
+ title: Source Language
+ description: The source language of the translating text
+ type: string
+ example: it
+ targetLanguage:
+ title: Target Language
+ description: The target language of the translating text
+ type: string
+ example: en
+ dependencies:
+ - "camel:dns"
+ - "camel:kamelet"
+ flow:
+ from:
+ uri: "kamelet:source"
+ steps:
+ - to:
+ uri: "aws2-translate://translate"
+ parameters:
+ secretKey: "{{secretKey}}"
+ accessKey: "{{accessKey}}"
+ region: "{{region}}"
+ sourceLanguage: "{{sourceLanguage}}"
+ targetLanguage: "{{targetLanguage}}"
[camel-kamelets] 07/07: Added AWS Translate 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 eb5343e372d8173e170409887cb7bce411bfdebc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:17:15 2021 +0200
Added AWS Translate Action
---
.../src/main/resources/kamelets/aws-translate-action.kamelet.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
index d41f328..fadf336 100644
--- a/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
@@ -53,6 +53,7 @@ spec:
dependencies:
- "camel:dns"
- "camel:kamelet"
+ - "camel:aws2-translate"
flow:
from:
uri: "kamelet:source"
[camel-kamelets] 05/07: Added AWS Translate 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 a4d30707ba168a8756866d3f3e15cf20a90465b4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:14:31 2021 +0200
Added AWS Translate Action
---
.../images/kamelets/aws-translate-action.svg | 1 +
docs/modules/ROOT/pages/aws-translate-action.adoc | 75 ++++++++++++++++++++++
2 files changed, 76 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/aws-translate-action.svg b/docs/modules/ROOT/assets/images/kamelets/aws-translate-action.svg
new file mode 100644
index 0000000..3561e0f
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/aws-translate-action.svg
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="utf-8"?><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 122.88 84.81" style="enable-background:new 0 0 122.88 84.81" xml:space="preserve"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;}</style><g><path class="st0" d="M118.29,10.9c2.31,2.31,3.9,5.34,4.41,8.72c0.19,1.3,0.18,2.42,0.18,3.7v21.09c0,1.14,0.03,2.27-0.07,3.41 c-0.44,4.72-3.08,9.07-7.06,11.64c [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/aws-translate-action.adoc b/docs/modules/ROOT/pages/aws-translate-action.adoc
new file mode 100644
index 0000000..0f0de15
--- /dev/null
+++ b/docs/modules/ROOT/pages/aws-translate-action.adoc
@@ -0,0 +1,75 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/aws-translate-action.svg[] AWS Translate Action
+
+*Provided by: "Apache Software Foundation"*
+
+Translate a text in a specific language
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `aws-translate-action` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *accessKey {empty}* *| Access Key| The access key obtained from AWS.| string| |
+| *region {empty}* *| AWS Region| The AWS region to connect to.| string| | `"eu-west-1"`
+| *secretKey {empty}* *| Secret Key| The secret key obtained from AWS.| string| |
+| *sourceLanguage {empty}* *| Source Language| The source language of the translating text| string| | `"it"`
+| *targetLanguage {empty}* *| Target Language| The target language of the translating text| string| | `"en"`
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `aws-translate-action` can be used in various contexts.
+
+=== Knative Action
+
+The `aws-translate-action` Kamelet can be used as intermediate step in a binding.
+
+.aws-translate-action-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: aws-translate-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: aws-translate-action
+ properties:
+ accessKey: "The Access Key"
+ region: "eu-west-1"
+ secretKey: "The Secret Key"
+ sourceLanguage: "it"
+ targetLanguage: "en"
+ 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 `aws-translate-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 aws-translate-action-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
[camel-kamelets] 06/07: Added AWS Translate 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 6f2f887ce6ab751c30b0ce7ec81e9394d5d82bb3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:16:58 2021 +0200
Added AWS Translate Action
---
aws-translate-action.kamelet.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/aws-translate-action.kamelet.yaml b/aws-translate-action.kamelet.yaml
index d41f328..fadf336 100644
--- a/aws-translate-action.kamelet.yaml
+++ b/aws-translate-action.kamelet.yaml
@@ -53,6 +53,7 @@ spec:
dependencies:
- "camel:dns"
- "camel:kamelet"
+ - "camel:aws2-translate"
flow:
from:
uri: "kamelet:source"
[camel-kamelets] 04/07: Added AWS Translate 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 1db5dfcd6e0226bc30c78ae661a94f25a601f6fb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:14:18 2021 +0200
Added AWS Translate Action
---
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 53ea352..dd5f54c 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -12,6 +12,7 @@
* xref:ROOT:aws-sqs-fifo-sink.adoc[image:kamelets/aws-sqs-fifo-sink.svg[] AWS SQS FIFO Sink]
* xref:ROOT:aws-sqs-sink.adoc[image:kamelets/aws-sqs-sink.svg[] AWS SQS Sink]
* xref:ROOT:aws-sqs-source.adoc[image:kamelets/aws-sqs-source.svg[] AWS SQS Source]
+* xref:ROOT:aws-translate-action.adoc[image:kamelets/aws-translate-action.svg[] AWS Translate Action]
* xref:ROOT:azure-eventhubs-sink.adoc[image:kamelets/azure-eventhubs-sink.svg[] Azure Eventhubs Sink]
* xref:ROOT:azure-eventhubs-source.adoc[image:kamelets/azure-eventhubs-source.svg[] Azure Eventhubs Source]
* xref:ROOT:azure-storage-blob-sink.adoc[image:kamelets/azure-storage-blob-sink.svg[] Azure Storage Blob Sink]