This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new a7f7147c2 Fix #3311: remove minio-source, minio-sink and
ibm-watson-language-sink (#3312)
a7f7147c2 is described below
commit a7f7147c263b267a5f986748d5ade61240d79f37
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 20 22:30:25 2026 +0100
Fix #3311: remove minio-source, minio-sink and ibm-watson-language-sink
(#3312)
MinIO archived its open source repository and Camel deprecated camel-minio
(CAMEL-24750). IBM deprecated Watson Natural Language Understanding on
31 July 2026 and removes it from IBM Cloud on 31 January 2028.
For MinIO and other S3-compatible storage, aws-s3-source and aws-s3-sink
work with overrideEndpoint, uriEndpointOverride and forcePathStyle.
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../camel-kamelets-catalog-sbom.json | 54 +-------
docs/modules/ROOT/nav.adoc | 3 -
.../ibm-watson-language-sink-description.adoc | 60 --------
.../ROOT/partials/minio-sink-description.adoc | 25 ----
.../ROOT/partials/minio-source-description.adoc | 43 ------
kamelets/ceph-sink.kamelet.yaml | 2 +-
kamelets/ibm-watson-language-sink.kamelet.yaml | 151 ---------------------
kamelets/minio-sink.kamelet.yaml | 147 --------------------
kamelets/minio-source.kamelet.yaml | 127 -----------------
.../catalog/model/KameletPrefixSchemeEnum.java | 1 -
.../kamelets/catalog/KameletsCatalogTest.java | 2 -
.../src/test/resources/remove-headers/kamelets.csv | 2 -
.../main/resources/META-INF/kamelets-index.json | 32 +----
.../main/resources/kamelets/ceph-sink.kamelet.yaml | 2 +-
.../kamelets/ibm-watson-language-sink.kamelet.yaml | 151 ---------------------
.../resources/kamelets/minio-sink.kamelet.yaml | 147 --------------------
.../resources/kamelets/minio-source.kamelet.yaml | 127 -----------------
templates/pipes/camel-k/minio-sink-pipe.yaml | 21 ---
templates/pipes/camel-k/minio-source-pipe.yaml | 21 ---
templates/pipes/core/minio-sink-pipe.yaml | 14 --
templates/pipes/core/minio-source-pipe.yaml | 11 --
.../src/test/java/CloudIT.java | 9 +-
.../minio/minio-sink-route.citrus.it.yaml | 94 -------------
.../src/test/resources/minio/minio-sink-route.yaml | 49 -------
.../minio/minio-source-route.citrus.it.yaml | 94 -------------
.../test/resources/minio/minio-source-route.yaml | 57 --------
.../src/test/resources/minio/verifyObject.groovy | 33 -----
27 files changed, 6 insertions(+), 1473 deletions(-)
diff --git a/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
b/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
index 2f6f56ad1..5e5c3fe40 100644
--- a/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
+++ b/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
@@ -541,11 +541,6 @@
"type" : "library",
"name" : "ibm-cos-source",
"version" : "4.24.0-SNAPSHOT"
- }, {
- "bom-ref" : "kamelet:ibm-watson-language-sink",
- "type" : "library",
- "name" : "ibm-watson-language-sink",
- "version" : "4.24.0-SNAPSHOT"
}, {
"bom-ref" : "kamelet:infinispan-sink",
"type" : "library",
@@ -736,16 +731,6 @@
"type" : "library",
"name" : "message-timestamp-router-action",
"version" : "4.24.0-SNAPSHOT"
- }, {
- "bom-ref" : "kamelet:minio-sink",
- "type" : "library",
- "name" : "minio-sink",
- "version" : "4.24.0-SNAPSHOT"
- }, {
- "bom-ref" : "kamelet:minio-source",
- "type" : "library",
- "name" : "minio-source",
- "version" : "4.24.0-SNAPSHOT"
}, {
"bom-ref" : "kamelet:mongodb-changes-stream-source",
"type" : "library",
@@ -1716,17 +1701,6 @@
"name" : "camel.apache.org/versioned-by",
"value" : "runtime"
} ]
- }, {
- "bom-ref" :
"pkg:maven/org.apache.camel/[email protected]",
- "type" : "library",
- "group" : "org.apache.camel",
- "name" : "camel-ibm-watson-language",
- "version" : "4.24.0-SNAPSHOT",
- "purl" :
"pkg:maven/org.apache.camel/[email protected]",
- "properties" : [ {
- "name" : "camel.apache.org/versioned-by",
- "value" : "runtime"
- } ]
}, {
"bom-ref" : "pkg:maven/org.apache.camel/[email protected]",
"type" : "library",
@@ -1936,17 +1910,6 @@
"name" : "camel.apache.org/versioned-by",
"value" : "runtime"
} ]
- }, {
- "bom-ref" : "pkg:maven/org.apache.camel/[email protected]",
- "type" : "library",
- "group" : "org.apache.camel",
- "name" : "camel-minio",
- "version" : "4.24.0-SNAPSHOT",
- "purl" : "pkg:maven/org.apache.camel/[email protected]",
- "properties" : [ {
- "name" : "camel.apache.org/versioned-by",
- "value" : "runtime"
- } ]
}, {
"bom-ref" : "pkg:maven/org.apache.camel/[email protected]",
"type" : "library",
@@ -2297,7 +2260,7 @@
} ],
"dependencies" : [ {
"ref" : "camel-kamelets-catalog",
- "dependsOn" : [ "kamelet:avro-deserialize-action",
"kamelet:avro-serialize-action", "kamelet:aws-bedrock-agent-runtime-sink",
"kamelet:aws-bedrock-agent-sink", "kamelet:aws-bedrock-text-sink",
"kamelet:aws-cloudtrail-source", "kamelet:aws-cloudwatch-sink",
"kamelet:aws-comprehend-sink", "kamelet:aws-ddb-sink",
"kamelet:aws-ddb-streams-source", "kamelet:aws-ec2-sink",
"kamelet:aws-eventbridge-sink", "kamelet:aws-kinesis-firehose-sink",
"kamelet:aws-kinesis-sink", "kamelet:aws-kinesis- [...]
+ "dependsOn" : [ "kamelet:avro-deserialize-action",
"kamelet:avro-serialize-action", "kamelet:aws-bedrock-agent-runtime-sink",
"kamelet:aws-bedrock-agent-sink", "kamelet:aws-bedrock-text-sink",
"kamelet:aws-cloudtrail-source", "kamelet:aws-cloudwatch-sink",
"kamelet:aws-comprehend-sink", "kamelet:aws-ddb-sink",
"kamelet:aws-ddb-streams-source", "kamelet:aws-ec2-sink",
"kamelet:aws-eventbridge-sink", "kamelet:aws-kinesis-firehose-sink",
"kamelet:aws-kinesis-sink", "kamelet:aws-kinesis- [...]
}, {
"ref" : "kamelet:avro-deserialize-action",
"dependsOn" : [
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
@@ -2616,9 +2579,6 @@
}, {
"ref" : "kamelet:ibm-cos-source",
"dependsOn" : [
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
- }, {
- "ref" : "kamelet:ibm-watson-language-sink",
- "dependsOn" : [
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
}, {
"ref" : "kamelet:infinispan-sink",
"dependsOn" : [
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
@@ -2733,12 +2693,6 @@
}, {
"ref" : "kamelet:message-timestamp-router-action",
"dependsOn" : [
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
- }, {
- "ref" : "kamelet:minio-sink",
- "dependsOn" : [
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
- }, {
- "ref" : "kamelet:minio-source",
- "dependsOn" : [
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
}, {
"ref" : "kamelet:mongodb-changes-stream-source",
"dependsOn" : [
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
@@ -3129,9 +3083,6 @@
}, {
"ref" : "pkg:maven/org.apache.camel/[email protected]",
"dependsOn" : [ ]
- }, {
- "ref" :
"pkg:maven/org.apache.camel/[email protected]",
- "dependsOn" : [ ]
}, {
"ref" : "pkg:maven/org.apache.camel/[email protected]",
"dependsOn" : [ ]
@@ -3189,9 +3140,6 @@
}, {
"ref" : "pkg:maven/org.apache.camel/[email protected]",
"dependsOn" : [ ]
- }, {
- "ref" : "pkg:maven/org.apache.camel/[email protected]",
- "dependsOn" : [ ]
}, {
"ref" : "pkg:maven/org.apache.camel/[email protected]",
"dependsOn" : [ ]
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 3ce3bef3f..fba0b35c9 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -105,7 +105,6 @@
* xref:http-source.adoc[]
* xref:ibm-cos-sink.adoc[]
* xref:ibm-cos-source.adoc[]
-* xref:ibm-watson-language-sink.adoc[]
* xref:infinispan-sink.adoc[]
* xref:infinispan-source.adoc[]
* xref:insert-field-action.adoc[]
@@ -144,8 +143,6 @@
* xref:mariadb-source.adoc[]
* xref:mask-field-action.adoc[]
* xref:message-timestamp-router-action.adoc[]
-* xref:minio-sink.adoc[]
-* xref:minio-source.adoc[]
* xref:mongodb-changes-stream-source.adoc[]
* xref:mongodb-sink.adoc[]
* xref:mongodb-source.adoc[]
diff --git
a/docs/modules/ROOT/partials/ibm-watson-language-sink-description.adoc
b/docs/modules/ROOT/partials/ibm-watson-language-sink-description.adoc
deleted file mode 100644
index 0ae664761..000000000
--- a/docs/modules/ROOT/partials/ibm-watson-language-sink-description.adoc
+++ /dev/null
@@ -1,60 +0,0 @@
-== IBM Watson Natural Language Understanding Sink Kamelet Description
-
-=== Authentication
-
-This Kamelet uses IBM Cloud IAM (Identity and Access Management) for
authentication. You need to provide:
-
-- **apiKey**: Your IBM Cloud API key with access to Watson Natural Language
Understanding service
-- **serviceUrl** (optional): The Watson NLU service endpoint URL for your
region
-
-=== Getting your credentials
-
-1. Log in to the https://cloud.ibm.com[IBM Cloud Console]
-2. Navigate to your Watson Natural Language Understanding service instance
-3. Go to **Service credentials** section
-4. Create new credentials or use existing ones
-5. Copy the **apikey** value
-
-=== Regional endpoints
-
-Watson Natural Language Understanding provides different endpoints for
different regions:
-
-- **US South**:
`https://api.us-south.natural-language-understanding.watson.cloud.ibm.com`
-- **US East**:
`https://api.us-east.natural-language-understanding.watson.cloud.ibm.com`
-- **EU GB (London)**:
`https://api.eu-gb.natural-language-understanding.watson.cloud.ibm.com`
-- **EU DE (Frankfurt)**:
`https://api.eu-de.natural-language-understanding.watson.cloud.ibm.com`
-- **Tokyo**:
`https://api.jp-tok.natural-language-understanding.watson.cloud.ibm.com`
-- **Sydney**:
`https://api.au-syd.natural-language-understanding.watson.cloud.ibm.com`
-
-If not specified, the kamelet uses the default US South endpoint.
-
-For more information, see the
https://cloud.ibm.com/apidocs/natural-language-understanding[Watson Natural
Language Understanding API documentation].
-
-=== Analysis features
-
-Watson NLU can analyze text for:
-
-- **Sentiment** - Detect positive, negative, or neutral sentiment (enabled by
default)
-- **Emotions** - Identify joy, anger, sadness, fear, disgust
-- **Entities** - Extract people, companies, organizations, cities (enabled by
default)
-- **Keywords** - Extract important keywords and phrases (enabled by default)
-- **Concepts** - Identify high-level concepts not explicitly mentioned
-- **Categories** - Classify content into hierarchical categories
-
-You can enable or disable each feature using the kamelet properties.
-
-=== Operations
-
-This kamelet supports two operations:
-
-- **analyzeText** (default) - Analyze text provided in the message body
-- **analyzeUrl** - Analyze content from a URL specified in the
`CamelIBMWatsonLanguageUrl` header
-
-=== Pricing
-
-Watson Natural Language Understanding offers a free tier:
-
-- **Lite Plan**: 30,000 NLU items per month (free)
-- Additional items are charged per item
-
-For current pricing details, visit the
https://www.ibm.com/cloud/watson-natural-language-understanding/pricing[Watson
NLU Pricing page].
diff --git a/docs/modules/ROOT/partials/minio-sink-description.adoc
b/docs/modules/ROOT/partials/minio-sink-description.adoc
deleted file mode 100644
index 46a9e5b7d..000000000
--- a/docs/modules/ROOT/partials/minio-sink-description.adoc
+++ /dev/null
@@ -1,25 +0,0 @@
-== Minio Sink Kamelet Description
-
-=== Object Storage Integration
-
-This Kamelet integrates with MinIO, an open-source object storage system that
is compatible with Amazon S3 APIs. MinIO is ideal for cloud-native applications
and data lake architectures.
-
-=== S3-Compatible API
-
-MinIO provides S3-compatible APIs, making it easy to migrate from Amazon S3 or
integrate with S3-compatible applications and tools.
-
-=== Authentication
-
-Uses access key and secret key authentication for secure access to MinIO
instances. These credentials should be properly managed and secured according
to security best practices.
-
-=== Bucket Management
-
-The Kamelet can optionally auto-create buckets if they don't exist, providing
flexibility for dynamic storage scenarios. Objects are stored with configurable
key names.
-
-=== Object Naming
-
-When the `keyName` option is set, every message is stored under that name, and
the `file` and `ce-file` headers are ignored. Otherwise the object name comes
from the `file` header, or the `ce-file` header, and is a generated unique name
when neither is set.
-
-=== Deployment Flexibility
-
-Supports various deployment scenarios including on-premises, cloud, and hybrid
environments with configurable endpoint URLs.
\ No newline at end of file
diff --git a/docs/modules/ROOT/partials/minio-source-description.adoc
b/docs/modules/ROOT/partials/minio-source-description.adoc
deleted file mode 100644
index 8bbd1e08e..000000000
--- a/docs/modules/ROOT/partials/minio-source-description.adoc
+++ /dev/null
@@ -1,43 +0,0 @@
-== Minio Source Kamelet Description
-
-=== Authentication methods
-
-This Kamelet connects to Minio using appropriate authentication mechanisms:
-
-- Service-specific authentication methods
-- API keys, tokens, or credential-based authentication
-- Connection configuration
-
-=== Output format
-
-The Kamelet reads the files of a MinIO bucket, and produces one message per
file, with the content of the file as bytes. It reads only the files at the top
of the bucket, not the files in folders, and by default deletes each file after
it has been read.
-
-=== Configuration
-
-The Kamelet requires connection parameters specific to Minio:
-
-- Service connection details
-- Authentication credentials
-- Query or consumption parameters
-
-=== Usage example
-
-```yaml
-apiVersion: camel.apache.org/v1alpha1
-kind: KameletBinding
-metadata:
- name: minio-source-binding
-spec:
- source:
- ref:
- kind: Kamelet
- apiVersion: camel.apache.org/v1alpha1
- name: minio-source
- properties:
- # Add service-specific properties here
- sink:
- ref:
- kind: Service
- apiVersion: v1
- name: my-service
-```
diff --git a/kamelets/ceph-sink.kamelet.yaml b/kamelets/ceph-sink.kamelet.yaml
index c8a33c8fb..5c25f8b9f 100644
--- a/kamelets/ceph-sink.kamelet.yaml
+++ b/kamelets/ceph-sink.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
description: |-
Uploads each message as a file (object) to a bucket of a Ceph Object
Gateway, the S3-compatible storage of Ceph.
- Use it to store data in Ceph, such as reports, exports, images or
received messages to keep as an archive. For MinIO use `minio-sink`, and for
Amazon S3 use `aws-s3-sink`.
+ Use it to store data in Ceph, such as reports, exports, images or
received messages to keep as an archive. For Amazon S3, or another
S3-compatible storage such as MinIO, use `aws-s3-sink` (with
`overrideEndpoint`, `uriEndpointOverride` and `forcePathStyle` for a storage
other than AWS).
Input: the body is the content of the file, as text, bytes or a stream.
The key (the name of the file in the bucket) comes from the optional `file`
header, or the `ce-file` header; when neither is set it is `keyName`, or a
generated unique name when `keyName` is not set either.
diff --git a/kamelets/ibm-watson-language-sink.kamelet.yaml
b/kamelets/ibm-watson-language-sink.kamelet.yaml
deleted file mode 100644
index 8fccdbcf7..000000000
--- a/kamelets/ibm-watson-language-sink.kamelet.yaml
+++ /dev/null
@@ -1,151 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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/v1
-kind: Kamelet
-metadata:
- name: ibm-watson-language-sink
- annotations:
- camel.apache.org/kamelet.support.level: "Preview"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPHBhdGggZD0iTTAgMGgyNTZ2MjU2SDB6Ii8+CiAgICA8cGF0aCBkPSJNMTI4IDIwYTEwOCAxMDggMCAxIDEgMCAyMTYgMTA4IDEwOCAwIDAgMSAwLTIxNnptMCAyNGE4NCA4NCAwIDEgMCAwIDE2OCA4NCA4NCAwIDAgMCAwLTE2OHoiIGZpbGw9IiMwNTNFRkYiLz4KICAgIDxwYXRoIGQ9Ik0xMjggNzJhNTYgNTYgMCAxIDEgMCAxMTIgNTYgNTYgMCAwIDEgMC0xMTJ6bTAgMjRhMz
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "IBM Watson"
- camel.apache.org/kamelet.namespace: "IBM"
- labels:
- camel.apache.org/kamelet.type: "sink"
-spec:
- definition:
- title: "IBM Watson Natural Language Understanding Sink"
- description: |-
- Analyzes the text of each message with IBM Watson Natural Language
Understanding and replaces the body with the results, such as the sentiment,
the entities and the keywords.
-
- Use it to find out what people write about and how they feel, for
example to flag angry customer emails, tag support tickets with the products
they mention, or measure the tone of reviews.
-
- Input: the body is the text to analyze, as text. With `operation` set to
`analyzeUrl`, the body is instead the address of a web page for Watson to fetch
and analyze. The optional `CamelIBMWatsonLanguageText` or
`CamelIBMWatsonLanguageUrl` header gives the text or the address instead of the
body. An empty body fails.
-
- Output: when it is used inside a route, the body afterwards is the
results as JSON text (bytes), with the `Content-Type` header set to
`application/json`. The `CamelIBMWatsonLanguageSentimentLabel` and
`CamelIBMWatsonLanguageSentimentScore` headers give the sentiment of the whole
text, and `CamelIBMWatsonLanguageLanguage` its language.
-
- Good to know: it logs in with the API key of a Natural Language
Understanding instance in IBM Cloud; set `serviceUrl` when the instance is not
in the US South region. Headers that start with `CamelIBMWatsonLanguage`,
except `CamelIBMWatsonLanguageText` and `CamelIBMWatsonLanguageUrl`, are
removed from the message first, so they cannot change what the Kamelet does.
- required:
- - apiKey
- type: object
- properties:
- apiKey:
- title: API Key
- description: The API key of the Natural Language Understanding
instance, the `apikey` value of its service credentials in the IBM Cloud
console.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- serviceUrl:
- title: Service URL
- description: The address of the Natural Language Understanding
instance, the `url` value of its service credentials, which depends on the
region of the instance. When it is not set, the address of the US South region
is used.
- type: string
- example:
"https://api.us-south.natural-language-understanding.watson.cloud.ibm.com"
- operation:
- title: Operation
- description: "`analyzeText` analyzes the text of the body;
`analyzeUrl` takes the body as the address of a web page that Watson fetches
and analyzes."
- type: string
- default: analyzeText
- enum:
- - analyzeText
- - analyzeUrl
- analyzeSentiment:
- title: Analyze Sentiment
- description: If true, the results say whether the text is positive,
negative or neutral, with a score from -1 to 1.
- type: boolean
- default: true
- analyzeEmotion:
- title: Analyze Emotion
- description: If true, the results give the emotions of the text, such
as joy, anger, sadness, fear and disgust.
- type: boolean
- default: false
- analyzeEntities:
- title: Analyze Entities
- description: If true, the results list the people, companies,
organizations, places and other named things in the text.
- type: boolean
- default: true
- analyzeKeywords:
- title: Analyze Keywords
- description: If true, the results list the important words and phrases
of the text.
- type: boolean
- default: true
- analyzeConcepts:
- title: Analyze Concepts
- description: If true, the results list general concepts that the text
is about, even when it does not name them.
- type: boolean
- default: false
- analyzeCategories:
- title: Analyze Categories
- description: If true, the results place the text in a hierarchy of
topics, such as `/technology and computing/software`.
- type: boolean
- default: false
- dataTypes:
- in:
- headers:
- CamelIBMWatsonLanguageText:
- title: Text
- description: The text to analyze, used instead of the body.
- type: string
- CamelIBMWatsonLanguageUrl:
- title: URL
- description: The address of the web page to analyze, used instead of
the body when `operation` is `analyzeUrl`.
- type: string
- out:
- default: watson-analysis
- headers:
- CamelIBMWatsonLanguageSentimentLabel:
- title: Sentiment Label
- description: The sentiment of the whole text, `positive`, `negative`
or `neutral`. Only set when `analyzeSentiment` is true.
- type: string
- CamelIBMWatsonLanguageSentimentScore:
- title: Sentiment Score
- description: The sentiment of the whole text, from -1 (most
negative) to 1 (most positive). Only set when `analyzeSentiment` is true.
- type: number
- CamelIBMWatsonLanguageLanguage:
- title: Detected Language
- description: The language of the text, as a code such as `en`.
- type: string
- types:
- watson-analysis:
- format: "application-json"
- description: Watson Natural Language Understanding analysis results
containing sentiment, entities, keywords, concepts, categories, and emotions.
- mediaType: application/json
- dependencies:
- - "camel:ibm-watson-language"
- - "camel:kamelet"
- template:
- from:
- uri: kamelet:source
- steps:
- - removeHeaders:
- pattern: CamelIBMWatsonLanguage*
- excludePattern: "CamelIBMWatsonLanguage(Text|Url)"
- - to:
- uri: ibm-watson-language
- parameters:
- label: analyze
- analyzeCategories: "{{analyzeCategories}}"
- analyzeConcepts: "{{analyzeConcepts}}"
- analyzeEmotion: "{{analyzeEmotion}}"
- analyzeEntities: "{{analyzeEntities}}"
- analyzeKeywords: "{{analyzeKeywords}}"
- analyzeSentiment: "{{analyzeSentiment}}"
- apiKey: "RAW({{apiKey}})"
- operation: "{{operation}}"
- serviceUrl: "{{?serviceUrl}}"
diff --git a/kamelets/minio-sink.kamelet.yaml b/kamelets/minio-sink.kamelet.yaml
deleted file mode 100644
index 97cb10ff4..000000000
--- a/kamelets/minio-sink.kamelet.yaml
+++ /dev/null
@@ -1,147 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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/v1
-kind: Kamelet
-metadata:
- name: minio-sink
- annotations:
- camel.apache.org/kamelet.support.level: "Stable"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9IkxheWVyIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE2Mi42MTIgMjQuNDY1Ij48cGF0aCBkPSJNNTIuNzUxLjQxNGg5LjEwOHYyMy42M2gtOS4xMDh6TTQxLjcxMS43NGwtMTguNDg4IDkuOTJhLjkxOS45MTkgMCAwIDEtLjg1NiAwTDMuODc5Ljc0QTIuODA4IDIuODA4IDAgMCAwIDIuNTU4LjQxNGgtLjAyM0EyLjQgMi40IDAgMCAwIDAgMi42NDF2MjEuMzc2aDkuMVYxMy44NDJhLjkxOC45MTggMCAwIDEgMS4zODUtLjY4MmwxMC4zNjEgNS41NjhhMy42MzQgMy42MzQgMCAwIDAgMy4zMzYuMD
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "Minio"
- camel.apache.org/kamelet.namespace: "Cloud"
- labels:
- camel.apache.org/kamelet.type: "sink"
- camel.apache.org/kamelet.verified: "true"
-spec:
- definition:
- title: "Minio Sink"
- description: |-
- Uploads each message as a file (object) to a bucket in MinIO, the
S3-compatible object storage.
-
- Use it to store data in MinIO, such as reports, exports, images or
received messages to keep as an archive. For Amazon S3 use `aws-s3-sink`, and
for the S3 gateway of Ceph use `ceph-sink`.
-
- Input: the body is the content of the file, as text, bytes or a stream.
When `keyName` is set, every message is stored under that name. Otherwise the
name of the file comes from the optional `file` header, or the `ce-file`
header, and is a generated unique name when neither is set.
-
- Output: the body is unchanged. The `CamelMinioObjectName` header holds
the name the file was stored under, unless `keyName` is set.
-
- Good to know: a file with the same name is overwritten, so with
`keyName` set each message replaces the previous one. When `keyName` is set,
the `file` and `ce-file` headers are ignored. Headers that start with
`CamelMinio` are removed from the message first, so they cannot change what the
Kamelet does.
- required:
- - bucketName
- - accessKey
- - secretKey
- - endpoint
- type: object
- properties:
- bucketName:
- title: Bucket Name
- description: The name of the bucket to store the files in.
- type: string
- example: my-bucket
- accessKey:
- title: Access Key
- description: The access key to log in to MinIO with, such as the
access key of a key pair created in the MinIO Console, or the name of a MinIO
user.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- secretKey:
- title: Secret Key
- description: The secret key that goes with `accessKey`, or the
password of the MinIO user.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- endpoint:
- title: Endpoint
- description: The address of the MinIO server, as a URL with the port,
such as `http://localhost:9000`. Use `https://` when the server has TLS.
- type: string
- example: http://localhost:9000
- autoCreateBucket:
- title: Autocreate Bucket
- description: If true, the bucket is created when it does not exist
yet. If false, the bucket must already exist.
- type: boolean
- default: false
- keyName:
- title: Key Name
- description: The name to store every file under, with its folder if
any. When it is not set, the name comes from the `file` or `ce-file` header of
each message, or is generated.
- type: string
- example: reports/latest.csv
- dataTypes:
- in:
- headers:
- file:
- title: File Name
- description: The name to store the file under, such as
`reports/january.csv`. Ignored when `keyName` is set.
- type: string
- ce-file:
- title: File Name
- description: The name to store the file under, used when the `file`
header is not set. Ignored when `keyName` is set.
- type: string
- dependencies:
- - "camel:minio"
- - "camel:kamelet"
- template:
- from:
- uri: kamelet:source
- steps:
- - removeHeaders:
- pattern: CamelMinio*
- - choice:
- precondition: true
- when:
- - expression:
- simple:
- expression: "${propertiesExist:!keyName}"
- steps:
- - choice:
- when:
- - expression:
- simple:
- expression: "${header[file]}"
- steps:
- - setHeader:
- name: CamelMinioObjectName
- expression:
- simple:
- expression: "${header[file]}"
- - expression:
- simple:
- expression: "${header[ce-file]}"
- steps:
- - setHeader:
- name: CamelMinioObjectName
- expression:
- simple:
- expression: "${header[ce-file]}"
- otherwise:
- steps:
- - setHeader:
- name: CamelMinioObjectName
- expression:
- simple:
- expression: "${exchangeId}"
- - to:
- uri: minio
- parameters:
- bucketName: "{{bucketName}}"
- accessKey: "RAW({{accessKey}})"
- autoCreateBucket: "{{autoCreateBucket}}"
- endpoint: "{{endpoint}}"
- keyName: "{{?keyName}}"
- secretKey: "RAW({{secretKey}})"
diff --git a/kamelets/minio-source.kamelet.yaml
b/kamelets/minio-source.kamelet.yaml
deleted file mode 100644
index 014ee7413..000000000
--- a/kamelets/minio-source.kamelet.yaml
+++ /dev/null
@@ -1,127 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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/v1
-kind: Kamelet
-metadata:
- name: minio-source
- annotations:
- camel.apache.org/kamelet.support.level: "Stable"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9IkxheWVyIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE2Mi42MTIgMjQuNDY1Ij48cGF0aCBkPSJNNTIuNzUxLjQxNGg5LjEwOHYyMy42M2gtOS4xMDh6TTQxLjcxMS43NGwtMTguNDg4IDkuOTJhLjkxOS45MTkgMCAwIDEtLjg1NiAwTDMuODc5Ljc0QTIuODA4IDIuODA4IDAgMCAwIDIuNTU4LjQxNGgtLjAyM0EyLjQgMi40IDAgMCAwIDAgMi42NDF2MjEuMzc2aDkuMVYxMy44NDJhLjkxOC45MTggMCAwIDEgMS4zODUtLjY4MmwxMC4zNjEgNS41NjhhMy42MzQgMy42MzQgMCAwIDAgMy4zMzYuMD
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "Minio"
- camel.apache.org/kamelet.namespace: "Cloud"
- labels:
- camel.apache.org/kamelet.type: "source"
- camel.apache.org/kamelet.verified: "true"
-spec:
- definition:
- title: "Minio Source"
- description: |-
- Reads the files (objects) in a MinIO bucket, one message per file, and
by default deletes each file once it has been read.
-
- Use it to process files that another system drops into a MinIO bucket,
such as uploaded documents, exported reports or log files. For Amazon S3 use
`aws-s3-source`, and for the S3 gateway of Ceph use `ceph-source`.
-
- Output: the body is the content of the file, as bytes, and the
`Content-Type` header is set to `application/octet-stream`. The headers give
the bucket name, the name of the file (`CamelMinioObjectName`), and the content
type the file was stored with (`CamelMinioContentType`), its size, ETag and
last modified date.
-
- Good to know: files are deleted from the bucket after they are read,
unless `deleteAfterRead` is set to false; then the same files are read again on
every poll, about twice a second. Only the files at the top of the bucket are
read: a file in a folder, such as `reports/january.csv`, is not.
- required:
- - bucketName
- - accessKey
- - secretKey
- - endpoint
- type: object
- properties:
- bucketName:
- title: Bucket Name
- description: The name of the bucket to read the files from.
- type: string
- example: my-bucket
- deleteAfterRead:
- title: Auto-delete Objects
- description: If true, each file is deleted from the bucket after it
has been read. Set it to false to keep the files; they are then read again on
every poll.
- type: boolean
- default: true
- accessKey:
- title: Access Key
- description: The access key to log in to MinIO with, such as the
access key of a key pair created in the MinIO Console, or the name of a MinIO
user.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- secretKey:
- title: Secret Key
- description: The secret key that goes with `accessKey`, or the
password of the MinIO user.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- endpoint:
- title: Endpoint
- description: The address of the MinIO server, as a URL with the port,
such as `http://localhost:9000`. Use `https://` when the server has TLS.
- type: string
- example: http://localhost:9000
- autoCreateBucket:
- title: Autocreate Bucket
- description: If true, the bucket is created when it does not exist
yet. If false, every poll fails while the bucket does not exist.
- type: boolean
- default: false
- dataTypes:
- out:
- default: binary
- headers:
- CamelMinioBucketName:
- title: Bucket Name
- description: The name of the bucket the file was read from.
- type: string
- CamelMinioObjectName:
- title: Object Name
- description: The name of the file in the bucket, such as
`invoice-42.pdf`.
- type: string
- CamelMinioContentType:
- title: Content Type
- description: The content type the file was stored with, such as
`application/octet-stream`.
- type: string
- CamelMinioContentLength:
- title: Content Length
- description: The size of the file, in bytes.
- type: integer
- CamelMinioETag:
- title: ETag
- description: The ETag of the file, which changes when its content
changes.
- type: string
- types:
- binary:
- format: "application-octet-stream"
- description: "The content of the file, as bytes."
- mediaType: application/octet-stream
- dependencies:
- - "camel:minio"
- - "camel:kamelet"
- template:
- from:
- uri: minio
- parameters:
- bucketName: "{{bucketName}}"
- accessKey: "RAW({{accessKey}})"
- autoCreateBucket: "{{autoCreateBucket}}"
- deleteAfterRead: "{{deleteAfterRead}}"
- endpoint: "{{endpoint}}"
- secretKey: "RAW({{secretKey}})"
- steps:
- - to:
- uri: kamelet:sink
diff --git
a/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
b/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
index e6333a77e..c0749a8fd 100644
---
a/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
+++
b/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
@@ -76,7 +76,6 @@ public enum KameletPrefixSchemeEnum {
log("log", "log"),
mail("mail", "imaps"),
mariadb("mariadb", "sql"),
- minio("minio", "minio"),
mongodb_changes_stream("mongodb-changes-stream", "mongodb"),
mongodb("mongodb", "mongodb"),
mqtt5("mqtt5", "paho-mqtt5"),
diff --git
a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
index 8379f2be7..d9c21d209 100644
---
a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
+++
b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
@@ -260,8 +260,6 @@ public class KameletsCatalogTest {
verifyHeaders("mail-sink", 6);
verifyHeaders("mariadb-source", 1);
verifyHeaders("mariadb-sink", 2);
- verifyHeaders("minio-source", 5);
- verifyHeaders("minio-sink", 2);
verifyHeaders("mongodb-changes-stream-source", 3);
verifyHeaders("mongodb-sink", 3);
verifyHeaders("mongodb-source", 3);
diff --git
a/library/camel-kamelets-catalog/src/test/resources/remove-headers/kamelets.csv
b/library/camel-kamelets-catalog/src/test/resources/remove-headers/kamelets.csv
index 9d1ad9aa1..4c89c3937 100644
---
a/library/camel-kamelets-catalog/src/test/resources/remove-headers/kamelets.csv
+++
b/library/camel-kamelets-catalog/src/test/resources/remove-headers/kamelets.csv
@@ -61,7 +61,6 @@
google-sheets-sink,CamelGoogleSheets*,,CamelGoogleSheets.spreadsheetId,
google-storage-sink,CamelGoogleCloudStorage*,,CamelGoogleCloudStorageOverrideBucketName,
google-vertexai-sink,CamelGoogleVertexAI*,CamelGoogleVertexAIPrompt,CamelGoogleVertexAIOperation,CamelGoogleVertexAIPrompt
ibm-cos-sink,CamelIBMCOS*,CamelIBMCOSKey,CamelIBMCOSOverrideBucketName,CamelIBMCOSKey
-ibm-watson-language-sink,CamelIBMWatsonLanguage*,CamelIBMWatsonLanguage(Text|Url),CamelIBMWatsonLanguageOperation,CamelIBMWatsonLanguageText|CamelIBMWatsonLanguageUrl
infinispan-sink,CamelInfinispan*,,CamelInfinispanOperation,
jira-add-comment-sink,CamelJira*,,CamelJiraIssueKey,
jira-add-issue-sink,CamelJira*,,CamelJiraIssueKey,
@@ -74,7 +73,6 @@ jolt-transformation-action,CamelJolt*,,CamelJoltResourceUri,
jslt-action,CamelJslt*,,CamelJsltResourceUri,
jsonata-action,CamelJsonata*,,CamelJsonataResourceUri,
kafka-sink,CamelKafka*,CamelKafka(Key|OverrideTopic),CamelKafkaOverrideTimestamp,CamelKafkaKey|CamelKafkaOverrideTopic
-minio-sink,CamelMinio*,,CamelMinioOverrideBucketName,
mongodb-sink,CamelMongo*,,CamelMongoDbOperation,
mqtt5-sink,CamelPaho*,,CamelPahoMqtt5OverrideTopic,
mustache-template-action,CamelMustache*,,CamelMustacheResourceUri,
diff --git
a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
index 728f40ebc..aaaf4b006 100644
--- a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
+++ b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
@@ -525,7 +525,7 @@
"supportLevel" : "Stable",
"title" : "Ceph Sink",
"summary" : "Uploads each message as a file (object) to a bucket of a Ceph
Object Gateway, the S3-compatible storage of Ceph.",
- "description" : "Uploads each message as a file (object) to a bucket of a
Ceph Object Gateway, the S3-compatible storage of Ceph.\n\nUse it to store data
in Ceph, such as reports, exports, images or received messages to keep as an
archive. For MinIO use `minio-sink`, and for Amazon S3 use
`aws-s3-sink`.\n\nInput: the body is the content of the file, as text, bytes or
a stream. The key (the name of the file in the bucket) comes from the optional
`file` header, or the `ce-file` header; [...]
+ "description" : "Uploads each message as a file (object) to a bucket of a
Ceph Object Gateway, the S3-compatible storage of Ceph.\n\nUse it to store data
in Ceph, such as reports, exports, images or received messages to keep as an
archive. For Amazon S3, or another S3-compatible storage such as MinIO, use
`aws-s3-sink` (with `overrideEndpoint`, `uriEndpointOverride` and
`forcePathStyle` for a storage other than AWS).\n\nInput: the body is the
content of the file, as text, bytes or a [...]
"group" : "Ceph",
"namespace" : "Cloud",
"provider" : "Apache Software Foundation"
@@ -1059,16 +1059,6 @@
"group" : "IBM Cloud Object Storage",
"namespace" : "IBM",
"provider" : "Apache Software Foundation"
- }, {
- "name" : "ibm-watson-language-sink",
- "type" : "sink",
- "supportLevel" : "Preview",
- "title" : "IBM Watson Natural Language Understanding Sink",
- "summary" : "Analyzes the text of each message with IBM Watson Natural
Language Understanding and replaces the body with the results, such as the
sentiment, the entities and the keywords.",
- "description" : "Analyzes the text of each message with IBM Watson Natural
Language Understanding and replaces the body with the results, such as the
sentiment, the entities and the keywords.\n\nUse it to find out what people
write about and how they feel, for example to flag angry customer emails, tag
support tickets with the products they mention, or measure the tone of
reviews.\n\nInput: the body is the text to analyze, as text. With `operation`
set to `analyzeUrl`, the body is in [...]
- "group" : "IBM Watson",
- "namespace" : "IBM",
- "provider" : "Apache Software Foundation"
}, {
"name" : "infinispan-sink",
"type" : "sink",
@@ -1449,26 +1439,6 @@
"group" : "Actions",
"namespace" : "Kafka",
"provider" : "Apache Software Foundation"
- }, {
- "name" : "minio-sink",
- "type" : "sink",
- "supportLevel" : "Stable",
- "title" : "Minio Sink",
- "summary" : "Uploads each message as a file (object) to a bucket in MinIO,
the S3-compatible object storage.",
- "description" : "Uploads each message as a file (object) to a bucket in
MinIO, the S3-compatible object storage.\n\nUse it to store data in MinIO, such
as reports, exports, images or received messages to keep as an archive. For
Amazon S3 use `aws-s3-sink`, and for the S3 gateway of Ceph use
`ceph-sink`.\n\nInput: the body is the content of the file, as text, bytes or a
stream. When `keyName` is set, every message is stored under that name.
Otherwise the name of the file comes from th [...]
- "group" : "Minio",
- "namespace" : "Cloud",
- "provider" : "Apache Software Foundation"
- }, {
- "name" : "minio-source",
- "type" : "source",
- "supportLevel" : "Stable",
- "title" : "Minio Source",
- "summary" : "Reads the files (objects) in a MinIO bucket, one message per
file, and by default deletes each file once it has been read.",
- "description" : "Reads the files (objects) in a MinIO bucket, one message
per file, and by default deletes each file once it has been read.\n\nUse it to
process files that another system drops into a MinIO bucket, such as uploaded
documents, exported reports or log files. For Amazon S3 use `aws-s3-source`,
and for the S3 gateway of Ceph use `ceph-source`.\n\nOutput: the body is the
content of the file, as bytes, and the `Content-Type` header is set to
`application/octet-stream`. The [...]
- "group" : "Minio",
- "namespace" : "Cloud",
- "provider" : "Apache Software Foundation"
}, {
"name" : "mongodb-changes-stream-source",
"type" : "source",
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/ceph-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/ceph-sink.kamelet.yaml
index c8a33c8fb..5c25f8b9f 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/ceph-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/ceph-sink.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
description: |-
Uploads each message as a file (object) to a bucket of a Ceph Object
Gateway, the S3-compatible storage of Ceph.
- Use it to store data in Ceph, such as reports, exports, images or
received messages to keep as an archive. For MinIO use `minio-sink`, and for
Amazon S3 use `aws-s3-sink`.
+ Use it to store data in Ceph, such as reports, exports, images or
received messages to keep as an archive. For Amazon S3, or another
S3-compatible storage such as MinIO, use `aws-s3-sink` (with
`overrideEndpoint`, `uriEndpointOverride` and `forcePathStyle` for a storage
other than AWS).
Input: the body is the content of the file, as text, bytes or a stream.
The key (the name of the file in the bucket) comes from the optional `file`
header, or the `ce-file` header; when neither is set it is `keyName`, or a
generated unique name when `keyName` is not set either.
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/ibm-watson-language-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/ibm-watson-language-sink.kamelet.yaml
deleted file mode 100644
index 8fccdbcf7..000000000
---
a/library/camel-kamelets/src/main/resources/kamelets/ibm-watson-language-sink.kamelet.yaml
+++ /dev/null
@@ -1,151 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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/v1
-kind: Kamelet
-metadata:
- name: ibm-watson-language-sink
- annotations:
- camel.apache.org/kamelet.support.level: "Preview"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPHBhdGggZD0iTTAgMGgyNTZ2MjU2SDB6Ii8+CiAgICA8cGF0aCBkPSJNMTI4IDIwYTEwOCAxMDggMCAxIDEgMCAyMTYgMTA4IDEwOCAwIDAgMSAwLTIxNnptMCAyNGE4NCA4NCAwIDEgMCAwIDE2OCA4NCA4NCAwIDAgMCAwLTE2OHoiIGZpbGw9IiMwNTNFRkYiLz4KICAgIDxwYXRoIGQ9Ik0xMjggNzJhNTYgNTYgMCAxIDEgMCAxMTIgNTYgNTYgMCAwIDEgMC0xMTJ6bTAgMjRhMz
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "IBM Watson"
- camel.apache.org/kamelet.namespace: "IBM"
- labels:
- camel.apache.org/kamelet.type: "sink"
-spec:
- definition:
- title: "IBM Watson Natural Language Understanding Sink"
- description: |-
- Analyzes the text of each message with IBM Watson Natural Language
Understanding and replaces the body with the results, such as the sentiment,
the entities and the keywords.
-
- Use it to find out what people write about and how they feel, for
example to flag angry customer emails, tag support tickets with the products
they mention, or measure the tone of reviews.
-
- Input: the body is the text to analyze, as text. With `operation` set to
`analyzeUrl`, the body is instead the address of a web page for Watson to fetch
and analyze. The optional `CamelIBMWatsonLanguageText` or
`CamelIBMWatsonLanguageUrl` header gives the text or the address instead of the
body. An empty body fails.
-
- Output: when it is used inside a route, the body afterwards is the
results as JSON text (bytes), with the `Content-Type` header set to
`application/json`. The `CamelIBMWatsonLanguageSentimentLabel` and
`CamelIBMWatsonLanguageSentimentScore` headers give the sentiment of the whole
text, and `CamelIBMWatsonLanguageLanguage` its language.
-
- Good to know: it logs in with the API key of a Natural Language
Understanding instance in IBM Cloud; set `serviceUrl` when the instance is not
in the US South region. Headers that start with `CamelIBMWatsonLanguage`,
except `CamelIBMWatsonLanguageText` and `CamelIBMWatsonLanguageUrl`, are
removed from the message first, so they cannot change what the Kamelet does.
- required:
- - apiKey
- type: object
- properties:
- apiKey:
- title: API Key
- description: The API key of the Natural Language Understanding
instance, the `apikey` value of its service credentials in the IBM Cloud
console.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- serviceUrl:
- title: Service URL
- description: The address of the Natural Language Understanding
instance, the `url` value of its service credentials, which depends on the
region of the instance. When it is not set, the address of the US South region
is used.
- type: string
- example:
"https://api.us-south.natural-language-understanding.watson.cloud.ibm.com"
- operation:
- title: Operation
- description: "`analyzeText` analyzes the text of the body;
`analyzeUrl` takes the body as the address of a web page that Watson fetches
and analyzes."
- type: string
- default: analyzeText
- enum:
- - analyzeText
- - analyzeUrl
- analyzeSentiment:
- title: Analyze Sentiment
- description: If true, the results say whether the text is positive,
negative or neutral, with a score from -1 to 1.
- type: boolean
- default: true
- analyzeEmotion:
- title: Analyze Emotion
- description: If true, the results give the emotions of the text, such
as joy, anger, sadness, fear and disgust.
- type: boolean
- default: false
- analyzeEntities:
- title: Analyze Entities
- description: If true, the results list the people, companies,
organizations, places and other named things in the text.
- type: boolean
- default: true
- analyzeKeywords:
- title: Analyze Keywords
- description: If true, the results list the important words and phrases
of the text.
- type: boolean
- default: true
- analyzeConcepts:
- title: Analyze Concepts
- description: If true, the results list general concepts that the text
is about, even when it does not name them.
- type: boolean
- default: false
- analyzeCategories:
- title: Analyze Categories
- description: If true, the results place the text in a hierarchy of
topics, such as `/technology and computing/software`.
- type: boolean
- default: false
- dataTypes:
- in:
- headers:
- CamelIBMWatsonLanguageText:
- title: Text
- description: The text to analyze, used instead of the body.
- type: string
- CamelIBMWatsonLanguageUrl:
- title: URL
- description: The address of the web page to analyze, used instead of
the body when `operation` is `analyzeUrl`.
- type: string
- out:
- default: watson-analysis
- headers:
- CamelIBMWatsonLanguageSentimentLabel:
- title: Sentiment Label
- description: The sentiment of the whole text, `positive`, `negative`
or `neutral`. Only set when `analyzeSentiment` is true.
- type: string
- CamelIBMWatsonLanguageSentimentScore:
- title: Sentiment Score
- description: The sentiment of the whole text, from -1 (most
negative) to 1 (most positive). Only set when `analyzeSentiment` is true.
- type: number
- CamelIBMWatsonLanguageLanguage:
- title: Detected Language
- description: The language of the text, as a code such as `en`.
- type: string
- types:
- watson-analysis:
- format: "application-json"
- description: Watson Natural Language Understanding analysis results
containing sentiment, entities, keywords, concepts, categories, and emotions.
- mediaType: application/json
- dependencies:
- - "camel:ibm-watson-language"
- - "camel:kamelet"
- template:
- from:
- uri: kamelet:source
- steps:
- - removeHeaders:
- pattern: CamelIBMWatsonLanguage*
- excludePattern: "CamelIBMWatsonLanguage(Text|Url)"
- - to:
- uri: ibm-watson-language
- parameters:
- label: analyze
- analyzeCategories: "{{analyzeCategories}}"
- analyzeConcepts: "{{analyzeConcepts}}"
- analyzeEmotion: "{{analyzeEmotion}}"
- analyzeEntities: "{{analyzeEntities}}"
- analyzeKeywords: "{{analyzeKeywords}}"
- analyzeSentiment: "{{analyzeSentiment}}"
- apiKey: "RAW({{apiKey}})"
- operation: "{{operation}}"
- serviceUrl: "{{?serviceUrl}}"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/minio-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/minio-sink.kamelet.yaml
deleted file mode 100644
index 97cb10ff4..000000000
--- a/library/camel-kamelets/src/main/resources/kamelets/minio-sink.kamelet.yaml
+++ /dev/null
@@ -1,147 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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/v1
-kind: Kamelet
-metadata:
- name: minio-sink
- annotations:
- camel.apache.org/kamelet.support.level: "Stable"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9IkxheWVyIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE2Mi42MTIgMjQuNDY1Ij48cGF0aCBkPSJNNTIuNzUxLjQxNGg5LjEwOHYyMy42M2gtOS4xMDh6TTQxLjcxMS43NGwtMTguNDg4IDkuOTJhLjkxOS45MTkgMCAwIDEtLjg1NiAwTDMuODc5Ljc0QTIuODA4IDIuODA4IDAgMCAwIDIuNTU4LjQxNGgtLjAyM0EyLjQgMi40IDAgMCAwIDAgMi42NDF2MjEuMzc2aDkuMVYxMy44NDJhLjkxOC45MTggMCAwIDEgMS4zODUtLjY4MmwxMC4zNjEgNS41NjhhMy42MzQgMy42MzQgMCAwIDAgMy4zMzYuMD
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "Minio"
- camel.apache.org/kamelet.namespace: "Cloud"
- labels:
- camel.apache.org/kamelet.type: "sink"
- camel.apache.org/kamelet.verified: "true"
-spec:
- definition:
- title: "Minio Sink"
- description: |-
- Uploads each message as a file (object) to a bucket in MinIO, the
S3-compatible object storage.
-
- Use it to store data in MinIO, such as reports, exports, images or
received messages to keep as an archive. For Amazon S3 use `aws-s3-sink`, and
for the S3 gateway of Ceph use `ceph-sink`.
-
- Input: the body is the content of the file, as text, bytes or a stream.
When `keyName` is set, every message is stored under that name. Otherwise the
name of the file comes from the optional `file` header, or the `ce-file`
header, and is a generated unique name when neither is set.
-
- Output: the body is unchanged. The `CamelMinioObjectName` header holds
the name the file was stored under, unless `keyName` is set.
-
- Good to know: a file with the same name is overwritten, so with
`keyName` set each message replaces the previous one. When `keyName` is set,
the `file` and `ce-file` headers are ignored. Headers that start with
`CamelMinio` are removed from the message first, so they cannot change what the
Kamelet does.
- required:
- - bucketName
- - accessKey
- - secretKey
- - endpoint
- type: object
- properties:
- bucketName:
- title: Bucket Name
- description: The name of the bucket to store the files in.
- type: string
- example: my-bucket
- accessKey:
- title: Access Key
- description: The access key to log in to MinIO with, such as the
access key of a key pair created in the MinIO Console, or the name of a MinIO
user.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- secretKey:
- title: Secret Key
- description: The secret key that goes with `accessKey`, or the
password of the MinIO user.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- endpoint:
- title: Endpoint
- description: The address of the MinIO server, as a URL with the port,
such as `http://localhost:9000`. Use `https://` when the server has TLS.
- type: string
- example: http://localhost:9000
- autoCreateBucket:
- title: Autocreate Bucket
- description: If true, the bucket is created when it does not exist
yet. If false, the bucket must already exist.
- type: boolean
- default: false
- keyName:
- title: Key Name
- description: The name to store every file under, with its folder if
any. When it is not set, the name comes from the `file` or `ce-file` header of
each message, or is generated.
- type: string
- example: reports/latest.csv
- dataTypes:
- in:
- headers:
- file:
- title: File Name
- description: The name to store the file under, such as
`reports/january.csv`. Ignored when `keyName` is set.
- type: string
- ce-file:
- title: File Name
- description: The name to store the file under, used when the `file`
header is not set. Ignored when `keyName` is set.
- type: string
- dependencies:
- - "camel:minio"
- - "camel:kamelet"
- template:
- from:
- uri: kamelet:source
- steps:
- - removeHeaders:
- pattern: CamelMinio*
- - choice:
- precondition: true
- when:
- - expression:
- simple:
- expression: "${propertiesExist:!keyName}"
- steps:
- - choice:
- when:
- - expression:
- simple:
- expression: "${header[file]}"
- steps:
- - setHeader:
- name: CamelMinioObjectName
- expression:
- simple:
- expression: "${header[file]}"
- - expression:
- simple:
- expression: "${header[ce-file]}"
- steps:
- - setHeader:
- name: CamelMinioObjectName
- expression:
- simple:
- expression: "${header[ce-file]}"
- otherwise:
- steps:
- - setHeader:
- name: CamelMinioObjectName
- expression:
- simple:
- expression: "${exchangeId}"
- - to:
- uri: minio
- parameters:
- bucketName: "{{bucketName}}"
- accessKey: "RAW({{accessKey}})"
- autoCreateBucket: "{{autoCreateBucket}}"
- endpoint: "{{endpoint}}"
- keyName: "{{?keyName}}"
- secretKey: "RAW({{secretKey}})"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/minio-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/minio-source.kamelet.yaml
deleted file mode 100644
index 014ee7413..000000000
---
a/library/camel-kamelets/src/main/resources/kamelets/minio-source.kamelet.yaml
+++ /dev/null
@@ -1,127 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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/v1
-kind: Kamelet
-metadata:
- name: minio-source
- annotations:
- camel.apache.org/kamelet.support.level: "Stable"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9IkxheWVyIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE2Mi42MTIgMjQuNDY1Ij48cGF0aCBkPSJNNTIuNzUxLjQxNGg5LjEwOHYyMy42M2gtOS4xMDh6TTQxLjcxMS43NGwtMTguNDg4IDkuOTJhLjkxOS45MTkgMCAwIDEtLjg1NiAwTDMuODc5Ljc0QTIuODA4IDIuODA4IDAgMCAwIDIuNTU4LjQxNGgtLjAyM0EyLjQgMi40IDAgMCAwIDAgMi42NDF2MjEuMzc2aDkuMVYxMy44NDJhLjkxOC45MTggMCAwIDEgMS4zODUtLjY4MmwxMC4zNjEgNS41NjhhMy42MzQgMy42MzQgMCAwIDAgMy4zMzYuMD
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "Minio"
- camel.apache.org/kamelet.namespace: "Cloud"
- labels:
- camel.apache.org/kamelet.type: "source"
- camel.apache.org/kamelet.verified: "true"
-spec:
- definition:
- title: "Minio Source"
- description: |-
- Reads the files (objects) in a MinIO bucket, one message per file, and
by default deletes each file once it has been read.
-
- Use it to process files that another system drops into a MinIO bucket,
such as uploaded documents, exported reports or log files. For Amazon S3 use
`aws-s3-source`, and for the S3 gateway of Ceph use `ceph-source`.
-
- Output: the body is the content of the file, as bytes, and the
`Content-Type` header is set to `application/octet-stream`. The headers give
the bucket name, the name of the file (`CamelMinioObjectName`), and the content
type the file was stored with (`CamelMinioContentType`), its size, ETag and
last modified date.
-
- Good to know: files are deleted from the bucket after they are read,
unless `deleteAfterRead` is set to false; then the same files are read again on
every poll, about twice a second. Only the files at the top of the bucket are
read: a file in a folder, such as `reports/january.csv`, is not.
- required:
- - bucketName
- - accessKey
- - secretKey
- - endpoint
- type: object
- properties:
- bucketName:
- title: Bucket Name
- description: The name of the bucket to read the files from.
- type: string
- example: my-bucket
- deleteAfterRead:
- title: Auto-delete Objects
- description: If true, each file is deleted from the bucket after it
has been read. Set it to false to keep the files; they are then read again on
every poll.
- type: boolean
- default: true
- accessKey:
- title: Access Key
- description: The access key to log in to MinIO with, such as the
access key of a key pair created in the MinIO Console, or the name of a MinIO
user.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- secretKey:
- title: Secret Key
- description: The secret key that goes with `accessKey`, or the
password of the MinIO user.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- endpoint:
- title: Endpoint
- description: The address of the MinIO server, as a URL with the port,
such as `http://localhost:9000`. Use `https://` when the server has TLS.
- type: string
- example: http://localhost:9000
- autoCreateBucket:
- title: Autocreate Bucket
- description: If true, the bucket is created when it does not exist
yet. If false, every poll fails while the bucket does not exist.
- type: boolean
- default: false
- dataTypes:
- out:
- default: binary
- headers:
- CamelMinioBucketName:
- title: Bucket Name
- description: The name of the bucket the file was read from.
- type: string
- CamelMinioObjectName:
- title: Object Name
- description: The name of the file in the bucket, such as
`invoice-42.pdf`.
- type: string
- CamelMinioContentType:
- title: Content Type
- description: The content type the file was stored with, such as
`application/octet-stream`.
- type: string
- CamelMinioContentLength:
- title: Content Length
- description: The size of the file, in bytes.
- type: integer
- CamelMinioETag:
- title: ETag
- description: The ETag of the file, which changes when its content
changes.
- type: string
- types:
- binary:
- format: "application-octet-stream"
- description: "The content of the file, as bytes."
- mediaType: application/octet-stream
- dependencies:
- - "camel:minio"
- - "camel:kamelet"
- template:
- from:
- uri: minio
- parameters:
- bucketName: "{{bucketName}}"
- accessKey: "RAW({{accessKey}})"
- autoCreateBucket: "{{autoCreateBucket}}"
- deleteAfterRead: "{{deleteAfterRead}}"
- endpoint: "{{endpoint}}"
- secretKey: "RAW({{secretKey}})"
- steps:
- - to:
- uri: kamelet:sink
diff --git a/templates/pipes/camel-k/minio-sink-pipe.yaml
b/templates/pipes/camel-k/minio-sink-pipe.yaml
deleted file mode 100644
index c43be978d..000000000
--- a/templates/pipes/camel-k/minio-sink-pipe.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-apiVersion: camel.apache.org/v1
-kind: Pipe
-metadata:
- name: minio-sink-pipe
-spec:
- source:
- ref:
- kind: KafkaTopic
- apiVersion: kafka.strimzi.io/v1beta1
- name: my-topic
- sink:
- ref:
- kind: Kamelet
- apiVersion: camel.apache.org/v1
- name: minio-sink
- properties:
- accessKey: "The Access Key"
- bucketName: "The Bucket Name"
- endpoint: "http://localhost:9000"
- secretKey: "The Secret Key"
-
\ No newline at end of file
diff --git a/templates/pipes/camel-k/minio-source-pipe.yaml
b/templates/pipes/camel-k/minio-source-pipe.yaml
deleted file mode 100644
index 9d76b9a6e..000000000
--- a/templates/pipes/camel-k/minio-source-pipe.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-apiVersion: camel.apache.org/v1
-kind: Pipe
-metadata:
- name: minio-source-pipe
-spec:
- source:
- ref:
- kind: Kamelet
- apiVersion: camel.apache.org/v1
- name: minio-source
- properties:
- accessKey: "The Access Key"
- bucketName: "The Bucket Name"
- endpoint: "http://localhost:9000"
- secretKey: "The Secret Key"
- sink:
- ref:
- kind: KafkaTopic
- apiVersion: kafka.strimzi.io/v1beta1
- name: my-topic
-
\ No newline at end of file
diff --git a/templates/pipes/core/minio-sink-pipe.yaml
b/templates/pipes/core/minio-sink-pipe.yaml
deleted file mode 100644
index 5d4218fad..000000000
--- a/templates/pipes/core/minio-sink-pipe.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-- route:
- from:
- uri: "kamelet:timer-source"
- parameters:
- period: 1000
- message: "Hello Camel JBang"
- steps:
- - to:
- uri: "kamelet:minio-sink"
- parameters:
- accessKey: "The Access Key"
- bucketName: "The Bucket Name"
- endpoint: "http://localhost:9000"
- secretKey: "The Secret Key"
diff --git a/templates/pipes/core/minio-source-pipe.yaml
b/templates/pipes/core/minio-source-pipe.yaml
deleted file mode 100644
index 9e8b6e3a0..000000000
--- a/templates/pipes/core/minio-source-pipe.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-- route:
- from:
- uri: "kamelet:minio-source"
- parameters:
- accessKey: "The Access Key"
- bucketName: "The Bucket Name"
- endpoint: "http://localhost:9000"
- secretKey: "The Secret Key"
- steps:
- - to:
- uri: "log:info"
diff --git a/tests/camel-kamelets-itest/src/test/java/CloudIT.java
b/tests/camel-kamelets-itest/src/test/java/CloudIT.java
index 7f63b66bc..3f75f79fc 100644
--- a/tests/camel-kamelets-itest/src/test/java/CloudIT.java
+++ b/tests/camel-kamelets-itest/src/test/java/CloudIT.java
@@ -33,13 +33,13 @@ import static
org.citrusframework.actions.PurgeEndpointAction.Builder.purgeEndpo
import static org.citrusframework.http.endpoint.builder.HttpEndpoints.http;
/**
- * Tests of the Kamelets of S3-compatible object storages, Ceph and MinIO,
against the S3 API of Floci, and of
+ * Tests of the Kamelets of the S3-compatible object storage Ceph, against the
S3 API of Floci, and of
* the GitHub sources against canned answers of the GitHub API.
*/
@CitrusSupport
public class CloudIT {
- private static final String TESTS = "(ceph|minio|github)-.*";
+ private static final String TESTS = "(ceph|github)-.*";
private final int cloudHttpServerPort = SocketUtils.findAvailableTcpPort();
@@ -87,11 +87,6 @@ public class CloudIT {
return
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("ceph");
}
- @CitrusTestFactory
- public Stream<DynamicTest> minio() {
- return
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("minio");
- }
-
@CitrusTestFactory
public Stream<DynamicTest> github() {
return
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("github");
diff --git
a/tests/camel-kamelets-itest/src/test/resources/minio/minio-sink-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/minio/minio-sink-route.citrus.it.yaml
deleted file mode 100644
index 29b671edf..000000000
---
a/tests/camel-kamelets-itest/src/test/resources/minio/minio-sink-route.citrus.it.yaml
+++ /dev/null
@@ -1,94 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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.
-# ---------------------------------------------------------------------------
-
-name: minio-sink-route-test
-description: 'minio-sink uploads the body as a file to the bucket, under the
name in the file header, and the message goes on unchanged'
-variables:
- - name: "s3.client"
- value: "s3MinioSinkClient"
- - name: "s3.bucket"
- value: "minio-sink-bucket"
- - name: "s3.key"
- value: "invoice 42+x=2.csv"
- - name: "s3.content"
- value: "id,amount"
-actions:
- # Create the S3 storage (Floci container), with the bucket
- - testcontainers:
- start:
- localstack:
- services:
- - "S3"
- options:
- buckets: 'minio-sink-bucket'
- s3ClientName: "s3MinioSinkClient"
- - waitFor:
- http:
- url: "${CITRUS_TESTCONTAINERS_LOCALSTACK_SERVICE_URL}"
-
- # Create Camel JBang integration
- - camel:
- cli:
- run:
- waitForRunningState: false
- integration:
- file: "minio/minio-sink-route.yaml"
- systemProperties:
- properties:
- - name: "http.sink.url"
- value: "http://localhost:${cloud.http.server.port}"
- - name: "s3.url"
- value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_SERVICE_URL}"
- - name: "s3.accessKey"
- value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_ACCESS_KEY}"
- - name: "s3.secretKey"
- value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_SECRET_KEY}"
- - name: "s3.region"
- value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_REGION}"
-
- # The message goes on unchanged, with the name the file was stored under
- - http:
- server: "cloudHttpServer"
- receiveRequest:
- POST:
- path: "/result"
- type: "plaintext"
- headers:
- - name: "X-Body-Type"
- value: 'java.lang.String'
- - name: "X-Content-Type"
- value: 'ct='
- - name: "X-Minio-Object-Name"
- value: 'invoice 42+x=2.csv'
- body:
- data: 'id,amount'
- - http:
- server: "cloudHttpServer"
- sendResponse:
- response:
- status: 200
- reasonPhrase: "OK"
- version: "HTTP/1.1"
-
- # The bucket has the file, under its key, with the body as its content
- - repeatOnError:
- until: "i = 10"
- autoSleep: 1000
- actions:
- - groovy:
- script:
- file: "minio/verifyObject.groovy"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/minio/minio-sink-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/minio/minio-sink-route.yaml
deleted file mode 100644
index 9bd122640..000000000
--- a/tests/camel-kamelets-itest/src/test/resources/minio/minio-sink-route.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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.
-# ---------------------------------------------------------------------------
-
-- route:
- from:
- uri: "timer:send"
- parameters:
- repeatCount: 1
- steps:
- - setBody:
- constant: 'id,amount'
- # the name, with characters that have a meaning in an address
- - setHeader:
- name: file
- constant: 'invoice 42+x=2.csv'
- - to:
- uri: "kamelet:minio-sink"
- parameters:
- endpoint: '{{s3.url}}'
- accessKey: '{{s3.accessKey}}'
- secretKey: '{{s3.secretKey}}'
- bucketName: 'minio-sink-bucket'
- # what the Kamelet gives: the Java type of the body and the
Content-Type
- - setHeader:
- name: X-Body-Type
- simple: "${body.getClass().getName()}"
- - setHeader:
- name: X-Content-Type
- simple: "ct=${header.Content-Type}"
- # Camel headers are not sent over HTTP: copy them
- - setHeader:
- name: X-Minio-Object-Name
- simple: "${header.CamelMinioObjectName}"
- - to:
- uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/minio/minio-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/minio/minio-source-route.citrus.it.yaml
deleted file mode 100644
index 0444a17db..000000000
---
a/tests/camel-kamelets-itest/src/test/resources/minio/minio-source-route.citrus.it.yaml
+++ /dev/null
@@ -1,94 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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.
-# ---------------------------------------------------------------------------
-
-name: minio-source-route-test
-description: 'minio-source reads the file from the bucket, with its bucket,
name, size, ETag and content type'
-actions:
- # Create the S3 storage (Floci container), with the bucket
- - testcontainers:
- start:
- localstack:
- services:
- - "S3"
- options:
- buckets: 'minio-source-bucket'
- s3ClientName: "s3MinioSourceClient"
- - waitFor:
- http:
- url: "${CITRUS_TESTCONTAINERS_LOCALSTACK_SERVICE_URL}"
-
- # A file whose name has characters that have a meaning in an address
- - send:
- endpoint:
camel:aws2-s3://minio-source-bucket?amazonS3Client=#s3MinioSourceClient
- message:
- headers:
- - name: CamelAwsS3Key
- value: "invoice 42+x=2.csv"
- body:
- data: "id,amount"
-
- # Create Camel JBang integration
- - camel:
- cli:
- run:
- waitForRunningState: false
- integration:
- file: "minio/minio-source-route.yaml"
- systemProperties:
- properties:
- - name: "http.sink.url"
- value: "http://localhost:${cloud.http.server.port}"
- - name: "s3.url"
- value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_SERVICE_URL}"
- - name: "s3.accessKey"
- value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_ACCESS_KEY}"
- - name: "s3.secretKey"
- value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_SECRET_KEY}"
- - name: "s3.region"
- value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_REGION}"
-
- # The source gives the content of the file, with its bucket, name, size and
ETag
- - http:
- server: "cloudHttpServer"
- receiveRequest:
- POST:
- path: "/result"
- type: "plaintext"
- headers:
- - name: "X-Body-Type"
- value: '[B'
- - name: "X-Content-Type"
- value: 'ct=application/octet-stream'
- - name: "X-Minio-Bucket-Name"
- value: 'minio-source-bucket'
- - name: "X-Minio-Object-Name"
- value: 'invoice 42+x=2.csv'
- - name: "X-Minio-Content-Length"
- value: '9'
- - name: "X-Minio-ETag"
- value: '@notEmpty()@'
- - name: "X-Minio-Content-Type"
- value: 'application/octet-stream'
- body:
- data: 'id,amount'
- - http:
- server: "cloudHttpServer"
- sendResponse:
- response:
- status: 200
- reasonPhrase: "OK"
- version: "HTTP/1.1"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/minio/minio-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/minio/minio-source-route.yaml
deleted file mode 100644
index 5d0f9c2d9..000000000
---
a/tests/camel-kamelets-itest/src/test/resources/minio/minio-source-route.yaml
+++ /dev/null
@@ -1,57 +0,0 @@
-# ---------------------------------------------------------------------------
-# 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.
-# ---------------------------------------------------------------------------
-
-- route:
- from:
- uri: "kamelet:minio-source"
- parameters:
- endpoint: '{{s3.url}}'
- accessKey: '{{s3.accessKey}}'
- secretKey: '{{s3.secretKey}}'
- bucketName: 'minio-source-bucket'
- steps:
- # what the Kamelet gives: the Java type of the body and the
Content-Type
- - setHeader:
- name: X-Body-Type
- simple: "${body.getClass().getName()}"
- - setHeader:
- name: X-Content-Type
- simple: "ct=${header.Content-Type}"
- # the HTTP server reads an application/octet-stream body as bytes:
send the content as text
- - removeHeader:
- name: Content-Type
- # Camel headers are not sent over HTTP: copy them
- - setHeader:
- name: X-Minio-Bucket-Name
- simple: "${header.CamelMinioBucketName}"
- - setHeader:
- name: X-Minio-Object-Name
- simple: "${header.CamelMinioObjectName}"
- - setHeader:
- name: X-Minio-Content-Length
- simple: "${header.CamelMinioContentLength}"
- - setHeader:
- name: X-Minio-ETag
- simple: "${header.CamelMinioETag}"
- - setHeader:
- name: X-Minio-Content-Type
- simple: "${header.CamelMinioContentType}"
- # give the HTTP server text
- - convertBodyTo:
- type: "java.lang.String"
- - to:
- uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/minio/verifyObject.groovy
b/tests/camel-kamelets-itest/src/test/resources/minio/verifyObject.groovy
deleted file mode 100644
index 3efee106f..000000000
--- a/tests/camel-kamelets-itest/src/test/resources/minio/verifyObject.groovy
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * 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.
- */
-
-// Checks that the bucket s3.bucket has the file s3.key, with the content
s3.content, read with the S3 client
-// s3.client of the Floci container.
-
-import software.amazon.awssdk.services.s3.S3Client
-import software.amazon.awssdk.services.s3.model.GetObjectRequest
-
-S3Client s3 =
context.getReferenceResolver().resolve(context.getVariable('s3.client'),
S3Client.class)
-
-def response = s3.getObjectAsBytes(GetObjectRequest.builder()
- .bucket(context.getVariable('s3.bucket'))
- .key(context.getVariable('s3.key'))
- .build())
-
-String content = response.asUtf8String()
-String expected = context.getVariable('s3.content')
-assert content == expected : "Expected '" + expected + "' but got '" + content
+ "'"