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/12/16 12:35:19 UTC

[camel-kamelets] branch google-storage-source created (now c3ca850)

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

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


      at c3ca850  Added Google Storage Source Kamelet

This branch includes the following new commits:

     new 8cdae10  Added Google Storage Source Kamelet
     new e9b9299  Added Google Storage Source Kamelet
     new 36970bf  Added Google Storage Source Kamelet
     new c6a2fdc  Added Google Storage Source Kamelet - Docs
     new d0ff8d9  Added Google Storage Source Kamelet - Templates
     new 104c854  Added Google Storage Source Kamelet
     new c2bec0d  Added Google Storage Source Kamelet
     new c3ca850  Added Google Storage Source Kamelet

The 8 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.


[camel-kamelets] 03/08: Added Google Storage 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 google-storage-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 36970bfecca97ebfccf20dd48277ae7dc7b3e6d5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 16 13:29:00 2021 +0100

    Added Google Storage 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 b8c4dab..44e6928 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -59,6 +59,7 @@
 * xref:ROOT:google-pubsub-sink.adoc[image:kamelets/google-pubsub-sink.svg[] Google Pubsub Sink]
 * xref:ROOT:google-pubsub-source.adoc[image:kamelets/google-pubsub-source.svg[] Google Pubsub Source]
 * xref:ROOT:google-sheets-source.adoc[image:kamelets/google-sheets-source.svg[] Google Sheets Source]
+* xref:ROOT:google-storage-source.adoc[image:kamelets/google-storage-source.svg[] Google Storage Source]
 * xref:ROOT:has-header-filter-action.adoc[image:kamelets/has-header-filter-action.svg[] Has Header Filter Action]
 * xref:ROOT:header-matches-filter-action.adoc[image:kamelets/header-matches-filter-action.svg[] Header Matches Filter Action]
 * xref:ROOT:hoist-field-action.adoc[image:kamelets/hoist-field-action.svg[] Hoist Field Action]

[camel-kamelets] 05/08: Added Google Storage Source Kamelet - Templates

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

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

commit d0ff8d97519944053f6fb394e149334bbd82da17
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 16 13:29:19 2021 +0100

    Added Google Storage Source Kamelet - Templates
---
 .../camel-k/google-storage-source-binding.yaml        | 19 +++++++++++++++++++
 .../bindings/core/google-storage-source-binding.yaml  | 10 ++++++++++
 2 files changed, 29 insertions(+)

diff --git a/templates/bindings/camel-k/google-storage-source-binding.yaml b/templates/bindings/camel-k/google-storage-source-binding.yaml
new file mode 100644
index 0000000..7497203
--- /dev/null
+++ b/templates/bindings/camel-k/google-storage-source-binding.yaml
@@ -0,0 +1,19 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: google-storage-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: google-storage-source
+    properties:
+      bucketNameOrArn: "The Bucket Name Or ARN"
+      serviceAccountKey: "The Service Account Key"
+  sink:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+  
\ No newline at end of file
diff --git a/templates/bindings/core/google-storage-source-binding.yaml b/templates/bindings/core/google-storage-source-binding.yaml
new file mode 100644
index 0000000..2567da3
--- /dev/null
+++ b/templates/bindings/core/google-storage-source-binding.yaml
@@ -0,0 +1,10 @@
+- route:
+    from:
+      uri: "kamelet:google-storage-source"
+      parameters:
+        bucketNameOrArn: "The Bucket Name Or ARN"
+        serviceAccountKey: "The Service Account Key"
+    steps:
+      - to:
+          uri: "log:info"
+    
\ No newline at end of file

[camel-kamelets] 04/08: Added Google Storage Source Kamelet - Docs

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

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

commit c6a2fdc2efb36db67fc157ee5d981c7bad5ed2c6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 16 13:29:10 2021 +0100

    Added Google Storage Source Kamelet - Docs
---
 .../images/kamelets/google-storage-source.svg      |   1 +
 docs/modules/ROOT/pages/google-storage-source.adoc | 154 +++++++++++++++++++++
 2 files changed, 155 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/google-storage-source.svg b/docs/modules/ROOT/assets/images/kamelets/google-storage-source.svg
new file mode 100644
index 0000000..449dd6e
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/google-storage-source.svg
@@ -0,0 +1 @@
+<svg height="2500" viewBox="-1.63323543 7.03260933 131.26574682 114.43939067" width="2500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="64" x2="64" y1="7.034" y2="120.789"><stop offset="0" stop-color="#4387fd"/><stop offset="1" stop-color="#4683ea"/></linearGradient><path d="m27.79 115.217-26.25-45.468a11.499 11.499 0 0 1 0-11.499l26.25-45.467a11.5 11.5 0 0 1 9.96-5.75h52.5a11.5 11.5 0 0 1 9.959 5. [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/google-storage-source.adoc b/docs/modules/ROOT/pages/google-storage-source.adoc
new file mode 100644
index 0000000..4fb7f09
--- /dev/null
+++ b/docs/modules/ROOT/pages/google-storage-source.adoc
@@ -0,0 +1,154 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+
+= image:kamelets/google-storage-source.svg[] Google Storage Source
+
+*Provided by: "Apache Software Foundation"*
+
+*Support Level for this Kamelet is: "Preview"*
+
+Consume Objects from Google Storage.
+
+The serviceAccountKey property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `google-storage-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *bucketNameOrArn {empty}* *| Bucket Name Or ARN| The Bucket Name or Bucket ARN| string| | 
+| *serviceAccountKey {empty}* *| Service Account Key| The Service account key that can be used as credentials for the Google Cloud Storage access.| binary| | 
+| autoCreateBucket| Autocreate Bucket| Setting the autocreation of the Google Cloud Storage bucket bucketNameOrArn.| boolean| `false`| 
+| deleteAfterRead| Auto-delete Objects| Delete objects after consuming them| boolean| `true`| 
+|===
+
+NOTE: Fields marked with an asterisk ({empty}*) are mandatory.
+
+
+== Dependencies
+
+At runtime, the `google-storage-source` Kamelet relies upon the presence of the following dependencies:
+
+- camel:kamelet
+- camel:google-storage
+- camel:jackson 
+
+== Usage
+
+This section describes how you can use the `google-storage-source`.
+
+=== Knative Source
+
+You can use the `google-storage-source` Kamelet as a Knative source by binding it to a Knative object.
+
+.google-storage-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: google-storage-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: google-storage-source
+    properties:
+      bucketNameOrArn: "The Bucket Name Or ARN"
+      serviceAccountKey: "The Service Account Key"
+  sink:
+    ref:
+      kind: Channel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+  
+----
+
+==== *Prerequisite*
+
+You have xref:{camel-k-version}@camel-k::installation/installation.adoc[Camel K installed] on the cluster.
+
+==== *Procedure for using the cluster CLI*
+
+. Save the `google-storage-source-binding.yaml` file to your local drive, and then edit it as needed for your configuration.
+
+. Run the source by using the following command:
++
+[source,shell]
+----
+kubectl apply -f google-storage-source-binding.yaml
+----
+
+==== *Procedure for using the Kamel CLI*
+
+Configure and run the source by using the following command:
+
+[source,shell]
+----
+kamel bind google-storage-source -p "source.bucketNameOrArn=The Bucket Name Or ARN" -p "source.serviceAccountKey=The Service Account Key" channel:mychannel
+----
+
+This command creates the KameletBinding in the current namespace on the cluster.
+
+=== Kafka Source
+
+You can use the `google-storage-source` Kamelet as a Kafka source by binding it to a Kafka topic.
+
+.google-storage-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: google-storage-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: google-storage-source
+    properties:
+      bucketNameOrArn: "The Bucket Name Or ARN"
+      serviceAccountKey: "The Service Account Key"
+  sink:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+  
+----
+
+==== *Prerequisites*
+
+* You've installed https://strimzi.io/[Strimzi].
+* You've created a topic named `my-topic` in the current namespace.
+* You have xref:{camel-k-version}@camel-k::installation/installation.adoc[Camel K installed] on the cluster.
+
+==== *Procedure for using the cluster CLI*
+
+. Save the `google-storage-source-binding.yaml` file to your local drive, and then edit it as needed for your configuration.
+
+. Run the source by using the following command:
++
+[source,shell]
+----
+kubectl apply -f google-storage-source-binding.yaml
+----
+
+==== *Procedure for using the Kamel CLI*
+
+Configure and run the source by using the following command:
+
+[source,shell]
+----
+kamel bind google-storage-source -p "source.bucketNameOrArn=The Bucket Name Or ARN" -p "source.serviceAccountKey=The Service Account Key" kafka.strimzi.io/v1beta1:KafkaTopic:my-topic
+----
+
+This command creates the KameletBinding in the current namespace on the cluster.
+
+== Kamelet source file
+
+https://github.com/apache/camel-kamelets/blob/main/kamelets/google-storage-source.kamelet.yaml
+
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 02/08: Added Google Storage 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 google-storage-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit e9b9299675e4071112f3825f2125135c6b36dbda
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 16 13:28:47 2021 +0100

    Added Google Storage Source Kamelet
---
 .../kamelets/google-storage-source.kamelet.yaml    | 77 ++++++++++++++++++++++
 1 file changed, 77 insertions(+)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
new file mode 100644
index 0000000..cade8a9
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
@@ -0,0 +1,77 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: google-storage-source
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9Ii0xLjYzMzIzNTQzIDcuMDMyNjA5MzMgMTMxLjI2NTc0NjgyIDExNC40MzkzOTA2NyIgd2lkdGg9IjI1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2NCIgeDI9IjY0IiB5MT0iNy4wMzQiIHkyPSIxMjAuNzg5Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0Mzg3ZmQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Google Storage"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "Google Storage Source"
+    description: |-
+      Consume Objects from Google Storage.
+
+      The serviceAccountKey property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
+    required:
+      - bucketNameOrArn
+      - serviceAccountKey
+    type: object
+    properties:
+      bucketNameOrArn:
+        title: Bucket Name Or ARN
+        description: The Bucket Name or Bucket ARN
+        type: string
+      serviceAccountKey:
+        title: Service Account Key
+        description: The Service account key that can be used as credentials for the Google Cloud Storage access.
+        type: binary
+        x-descriptors:
+        - urn:camel:group:credentials
+      deleteAfterRead:
+        title: Auto-delete Objects
+        description: Delete objects after consuming them
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: true
+      autoCreateBucket:
+        title: Autocreate Bucket
+        description: Setting the autocreation of the Google Cloud Storage bucket bucketNameOrArn. 
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+  dependencies:
+    - "camel:kamelet"
+    - "camel:google-storage"
+    - "camel:jackson"
+  flow:
+    from:
+      uri: "google-storage://{{bucketNameOrArn}}"
+      parameters:
+        autoCreateBucket: "{{autoCreateBucket}}"
+        serviceAccountKey: "base64:{{serviceAccountKey}}"
+        deleteAfterRead: "{{deleteAfterRead}}"
+      steps:
+      - to: kamelet:sink

[camel-kamelets] 07/08: Added Google Storage 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 google-storage-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit c2bec0d252467f5c99b85425d874715b23057267
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 16 13:32:54 2021 +0100

    Added Google Storage Source Kamelet
---
 .../src/main/resources/kamelets/google-storage-source.kamelet.yaml      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
index cade8a9..801d741 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
@@ -21,7 +21,7 @@ metadata:
   annotations:
     camel.apache.org/kamelet.support.level: "Preview"
     camel.apache.org/catalog.version: "main-SNAPSHOT"
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9Ii0xLjYzMzIzNTQzIDcuMDMyNjA5MzMgMTMxLjI2NTc0NjgyIDExNC40MzkzOTA2NyIgd2lkdGg9IjI1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2NCIgeDI9IjY0IiB5MT0iNy4wMzQiIHkyPSIxMjAuNzg5Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0Mzg3ZmQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3 [...]
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBoZWlnaHQ9IjgwMCIgd2lkdGg9IjEyMDAiIHZpZXdCb3g9Ii0xOS4yMDAxNSAtMjguNDgzIDE2Ni40MDEzIDE3MC44OTgiPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTcuMDM0KSI+PGxpbmVhckdyYWRpZW50IHkyPSIxMjAuNzg5IiB4Mj0iNjQiIHkxPSI3LjAzNCIgeDE9IjY0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgaWQ9ImEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzQzODdmZCIvPj [...]
     camel.apache.org/provider: "Apache Software Foundation"
     camel.apache.org/kamelet.group: "Google Storage"
   labels:

[camel-kamelets] 08/08: Added Google Storage 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 google-storage-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit c3ca850fe1f648714f1d2e5ff0c5c048f5350a41
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 16 13:34:37 2021 +0100

    Added Google Storage Source Kamelet
---
 docs/modules/ROOT/assets/images/kamelets/google-storage-source.svg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/assets/images/kamelets/google-storage-source.svg b/docs/modules/ROOT/assets/images/kamelets/google-storage-source.svg
index 449dd6e..d30e003 100644
--- a/docs/modules/ROOT/assets/images/kamelets/google-storage-source.svg
+++ b/docs/modules/ROOT/assets/images/kamelets/google-storage-source.svg
@@ -1 +1 @@
-<svg height="2500" viewBox="-1.63323543 7.03260933 131.26574682 114.43939067" width="2500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="64" x2="64" y1="7.034" y2="120.789"><stop offset="0" stop-color="#4387fd"/><stop offset="1" stop-color="#4683ea"/></linearGradient><path d="m27.79 115.217-26.25-45.468a11.499 11.499 0 0 1 0-11.499l26.25-45.467a11.5 11.5 0 0 1 9.96-5.75h52.5a11.5 11.5 0 0 1 9.959 5. [...]
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="800" width="1200" viewBox="-19.20015 -28.483 166.4013 170.898"><g transform="translate(0 -7.034)"><linearGradient y2="120.789" x2="64" y1="7.034" x1="64" gradientUnits="userSpaceOnUse" id="a"><stop offset="0" stop-color="#4387fd"/><stop offset="1" stop-color="#4683ea"/></linearGradient><path d="M27.79 115.217L1.54 69.749a11.499 11.499 0 010-11.499l26.25-45.467a11.5 11.5 0 019.96-5.75h52.5a11.5 11.5 [...]
\ No newline at end of file

[camel-kamelets] 01/08: Added Google Storage 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 google-storage-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 8cdae100ab351fe509d20a47e26a46a39c9c77af
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 16 13:23:50 2021 +0100

    Added Google Storage Source Kamelet
---
 kamelets/google-storage-source.kamelet.yaml | 77 +++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)

diff --git a/kamelets/google-storage-source.kamelet.yaml b/kamelets/google-storage-source.kamelet.yaml
new file mode 100644
index 0000000..cade8a9
--- /dev/null
+++ b/kamelets/google-storage-source.kamelet.yaml
@@ -0,0 +1,77 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: google-storage-source
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9Ii0xLjYzMzIzNTQzIDcuMDMyNjA5MzMgMTMxLjI2NTc0NjgyIDExNC40MzkzOTA2NyIgd2lkdGg9IjI1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2NCIgeDI9IjY0IiB5MT0iNy4wMzQiIHkyPSIxMjAuNzg5Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0Mzg3ZmQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Google Storage"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "Google Storage Source"
+    description: |-
+      Consume Objects from Google Storage.
+
+      The serviceAccountKey property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
+    required:
+      - bucketNameOrArn
+      - serviceAccountKey
+    type: object
+    properties:
+      bucketNameOrArn:
+        title: Bucket Name Or ARN
+        description: The Bucket Name or Bucket ARN
+        type: string
+      serviceAccountKey:
+        title: Service Account Key
+        description: The Service account key that can be used as credentials for the Google Cloud Storage access.
+        type: binary
+        x-descriptors:
+        - urn:camel:group:credentials
+      deleteAfterRead:
+        title: Auto-delete Objects
+        description: Delete objects after consuming them
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: true
+      autoCreateBucket:
+        title: Autocreate Bucket
+        description: Setting the autocreation of the Google Cloud Storage bucket bucketNameOrArn. 
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+  dependencies:
+    - "camel:kamelet"
+    - "camel:google-storage"
+    - "camel:jackson"
+  flow:
+    from:
+      uri: "google-storage://{{bucketNameOrArn}}"
+      parameters:
+        autoCreateBucket: "{{autoCreateBucket}}"
+        serviceAccountKey: "base64:{{serviceAccountKey}}"
+        deleteAfterRead: "{{deleteAfterRead}}"
+      steps:
+      - to: kamelet:sink

[camel-kamelets] 06/08: Added Google Storage 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 google-storage-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 104c85489e0d8a870f57932e5a1e4f54820e6670
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 16 13:32:33 2021 +0100

    Added Google Storage Source Kamelet
---
 kamelets/google-storage-source.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kamelets/google-storage-source.kamelet.yaml b/kamelets/google-storage-source.kamelet.yaml
index cade8a9..801d741 100644
--- a/kamelets/google-storage-source.kamelet.yaml
+++ b/kamelets/google-storage-source.kamelet.yaml
@@ -21,7 +21,7 @@ metadata:
   annotations:
     camel.apache.org/kamelet.support.level: "Preview"
     camel.apache.org/catalog.version: "main-SNAPSHOT"
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9Ii0xLjYzMzIzNTQzIDcuMDMyNjA5MzMgMTMxLjI2NTc0NjgyIDExNC40MzkzOTA2NyIgd2lkdGg9IjI1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2NCIgeDI9IjY0IiB5MT0iNy4wMzQiIHkyPSIxMjAuNzg5Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0Mzg3ZmQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3 [...]
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBoZWlnaHQ9IjgwMCIgd2lkdGg9IjEyMDAiIHZpZXdCb3g9Ii0xOS4yMDAxNSAtMjguNDgzIDE2Ni40MDEzIDE3MC44OTgiPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTcuMDM0KSI+PGxpbmVhckdyYWRpZW50IHkyPSIxMjAuNzg5IiB4Mj0iNjQiIHkxPSI3LjAzNCIgeDE9IjY0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgaWQ9ImEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzQzODdmZCIvPj [...]
     camel.apache.org/provider: "Apache Software Foundation"
     camel.apache.org/kamelet.group: "Google Storage"
   labels: