Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion aws/aws-sqs/http-to-aws-sqs.camel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

- route:
from:
uri: "platform-http:/news?httpMethodRestrict=POST"
uri: platform-http:/news
parameters:
httpMethodRestrict: POST
steps:
- to:
uri: "kamelet:aws-sqs-sink"
Expand Down
24 changes: 18 additions & 6 deletions ibm/ibm-cos/ibm-cos-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,25 +101,37 @@ spec:
- choice:
precondition: true
when:
- simple: '${propertiesExist:!keyName}'
- expression:
simple:
expression: '${propertiesExist:!keyName}'
steps:
- choice:
when:
- simple: "${header[file]}"
- expression:
simple:
expression: "${header[file]}"
steps:
- setHeader:
name: CamelIbmCosKey
simple: "${header[file]}"
- simple: "${header[ce-file]}"
expression:
simple:
expression: "${header[file]}"
- expression:
simple:
expression: "${header[ce-file]}"
steps:
- setHeader:
name: CamelIbmCosKey
simple: "${header[ce-file]}"
expression:
simple:
expression: "${header[ce-file]}"
otherwise:
steps:
- setHeader:
name: CamelIbmCosKey
simple: "${exchangeId}"
expression:
simple:
expression: "${exchangeId}"
- to:
uri: "ibm-cos:{{bucketName}}"
parameters:
Expand Down
3 changes: 2 additions & 1 deletion ibm/ibm-cos/ibm-cos-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,5 @@ spec:
delay: "{{delay}}"
maxMessagesPerPoll: "{{maxMessagesPerPoll}}"
steps:
- to: "kamelet:sink"
- to:
uri: kamelet:sink
4 changes: 3 additions & 1 deletion ibm/ibm-cos/kafka-to-ibm-cos.camel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
steps:
- setHeader:
name: CamelIbmCosKey
simple: "kafka-${date:now:yyyyMMdd-HHmmss-SSS}.txt"
expression:
simple:
expression: "kafka-${date:now:yyyyMMdd-HHmmss-SSS}.txt"
- log:
message: "Uploading to IBM COS: ${header.CamelIbmCosKey} with body: ${body}"
- to:
Expand Down
12 changes: 9 additions & 3 deletions ibm/ibm-watson-language/text-analysis-api.camel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
- route:
id: "analyze-sentiment-api"
from:
uri: "platform-http:/analyze/sentiment?httpMethodRestrict=POST"
uri: platform-http:/analyze/sentiment
parameters:
httpMethodRestrict: POST
steps:
- log:
message: "Received text for sentiment analysis: ${body}"
Expand All @@ -41,7 +43,9 @@
- route:
id: "analyze-entities-api"
from:
uri: "platform-http:/analyze/entities?httpMethodRestrict=POST"
uri: platform-http:/analyze/entities
parameters:
httpMethodRestrict: POST
steps:
- log:
message: "Received text for entity extraction: ${body}"
Expand All @@ -64,7 +68,9 @@
- route:
id: "analyze-comprehensive-api"
from:
uri: "platform-http:/analyze/all?httpMethodRestrict=POST"
uri: platform-http:/analyze/all
parameters:
httpMethodRestrict: POST
steps:
- log:
message: "Received text for comprehensive analysis: ${body}"
Expand Down
4 changes: 3 additions & 1 deletion kubernetes/secrets/news-service.camel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

- route:
from:
uri: "platform-http:/news?httpMethodRestrict=GET"
uri: platform-http:/news
parameters:
httpMethodRestrict: GET
steps:
- setBody:
constant: "{{news.headline}}"
Expand Down
4 changes: 3 additions & 1 deletion kubernetes/service/news-service.camel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

- route:
from:
uri: "platform-http:/news?httpMethodRestrict=GET"
uri: platform-http:/news
parameters:
httpMethodRestrict: GET
steps:
- setBody:
constant: "Hello from Camel"
Expand Down
Loading
Loading