Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Kamelet Group Label #229

Merged
merged 9 commits into from
May 5, 2021
1 change: 1 addition & 0 deletions aws-ddb-streams-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "source"
camel.apache.org/kamelet.group: "AWS DynamoDB Streams"
spec:
definition:
title: "AWS DynamoDB Streams Source"
Expand Down
1 change: 1 addition & 0 deletions aws-kinesis-firehose-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS Kinesis Firehose"
spec:
definition:
title: AWS Kinesis Firehose Sink
Expand Down
1 change: 1 addition & 0 deletions aws-kinesis-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS Kinesis"
spec:
definition:
title: "AWS Kinesis Sink"
Expand Down
1 change: 1 addition & 0 deletions aws-kinesis-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "source"
camel.apache.org/kamelet.group: "AWS Kinesis"
spec:
definition:
title: "AWS Kinesis Source"
Expand Down
1 change: 1 addition & 0 deletions aws-lambda-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS Lambda"
spec:
definition:
title: AWS Lambda Sink
Expand Down
1 change: 1 addition & 0 deletions aws-s3-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "sink"
camel.apache.org/kamelet.group: "AWS S3"
spec:
definition:
title: "AWS S3 Sink"
Expand Down
1 change: 1 addition & 0 deletions aws-s3-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "source"
camel.apache.org/kamelet.group: "AWS S3"
spec:
definition:
title: "AWS S3 Source"
Expand Down
1 change: 1 addition & 0 deletions aws-sns-fifo-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SNS"
spec:
definition:
title: AWS SNS FIFO Sink
Expand Down
1 change: 1 addition & 0 deletions aws-sns-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SNS"
spec:
definition:
title: AWS SNS Sink
Expand Down
1 change: 1 addition & 0 deletions aws-sqs-batch-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SQS"
spec:
definition:
title: AWS SQS Batch Sink
Expand Down
1 change: 1 addition & 0 deletions aws-sqs-fifo-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SQS"
spec:
definition:
title: AWS SQS FIFO Sink
Expand Down
1 change: 1 addition & 0 deletions aws-sqs-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SQS"
spec:
definition:
title: AWS SQS Sink
Expand Down
1 change: 1 addition & 0 deletions aws-sqs-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "source"
camel.apache.org/kamelet.group: "AWS SQS"
spec:
definition:
title: "AWS SQS Source"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "source"
camel.apache.org/kamelet.group: "AWS DynamoDB Streams"
spec:
definition:
title: "AWS DynamoDB Streams Source"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS Kinesis Firehose"
spec:
definition:
title: AWS Kinesis Firehose Sink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS Kinesis"
spec:
definition:
title: "AWS Kinesis Sink"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "source"
camel.apache.org/kamelet.group: "AWS Kinesis"
spec:
definition:
title: "AWS Kinesis Source"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS Lambda"
spec:
definition:
title: AWS Lambda Sink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "sink"
camel.apache.org/kamelet.group: "AWS S3"
spec:
definition:
title: "AWS S3 Sink"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "source"
camel.apache.org/kamelet.group: "AWS S3"
spec:
definition:
title: "AWS S3 Source"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SNS"
spec:
definition:
title: AWS SNS FIFO Sink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SNS"
spec:
definition:
title: AWS SNS Sink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SQS"
spec:
definition:
title: AWS SQS Batch Sink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SQS"
spec:
definition:
title: AWS SQS FIFO Sink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: sink
camel.apache.org/kamelet.group: "AWS SQS"
spec:
definition:
title: AWS SQS Sink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
camel.apache.org/provider: "Apache Software Foundation"
labels:
camel.apache.org/kamelet.type: "source"
camel.apache.org/kamelet.group: "AWS SQS"
spec:
definition:
title: "AWS SQS Source"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ public class ReplaceField {
updatedBody.put(renameOptional(fieldName, renamingMap), fieldValue);
}
}
return updatedBody;
if (!updatedBody.isEmpty()) {
return updatedBody;
} else {
return body;
}
}

boolean filterNames(String fieldName, List<String> enabledFields, List<String> disabledFields) {
Expand Down