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 2024/12/04 10:41:03 UTC
(camel-kamelets) 01/01: Add Prefix and Filter parameters to Google Cloud Storage Source Kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch gcs-prefix-and-filter
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 9a171d984817712cbd0034fe2bbe734dc84e38fe
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Dec 4 11:40:47 2024 +0100
Add Prefix and Filter parameters to Google Cloud Storage Source Kamelet
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/google-storage-source.kamelet.yaml | 10 ++++++++++
.../main/resources/kamelets/google-storage-source.kamelet.yaml | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/kamelets/google-storage-source.kamelet.yaml b/kamelets/google-storage-source.kamelet.yaml
index 61c554dc..721b7839 100644
--- a/kamelets/google-storage-source.kamelet.yaml
+++ b/kamelets/google-storage-source.kamelet.yaml
@@ -58,6 +58,14 @@ spec:
description: Specifies to automatically create the Google Cloud Storage bucket.
type: boolean
default: false
+ prefix:
+ title: Prefix
+ description: The prefix which is used in the BlobListOptions to only consume objects we are interested in.
+ type: string
+ filter:
+ title: Filter
+ description: A regular expression to include only blobs with name matching it.
+ type: string
dataTypes:
out:
default: binary
@@ -124,5 +132,7 @@ spec:
autoCreateBucket: "{{autoCreateBucket}}"
serviceAccountKey: "base64:{{?serviceAccountKey}}"
deleteAfterRead: "{{deleteAfterRead}}"
+ filter: "{{?filter}}"
+ filter: "{{?prefix}}"
steps:
- to: kamelet:sink
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 61c554dc..721b7839 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
@@ -58,6 +58,14 @@ spec:
description: Specifies to automatically create the Google Cloud Storage bucket.
type: boolean
default: false
+ prefix:
+ title: Prefix
+ description: The prefix which is used in the BlobListOptions to only consume objects we are interested in.
+ type: string
+ filter:
+ title: Filter
+ description: A regular expression to include only blobs with name matching it.
+ type: string
dataTypes:
out:
default: binary
@@ -124,5 +132,7 @@ spec:
autoCreateBucket: "{{autoCreateBucket}}"
serviceAccountKey: "base64:{{?serviceAccountKey}}"
deleteAfterRead: "{{deleteAfterRead}}"
+ filter: "{{?filter}}"
+ filter: "{{?prefix}}"
steps:
- to: kamelet:sink