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

Fix identation of steps in yaml dsl examples #950

Merged
merged 1 commit into from
Jun 21, 2022
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
30 changes: 15 additions & 15 deletions templates/bindings/core/avro-deserialize-action-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
parameters:
period: 1000
message: '{"first":"Ada","last":"Lovelace"}'
steps:
- to:
uri: "kamelet:json-deserialize-action"
- to:
uri: "kamelet:avro-serialize-action"
parameters:
schema: "{\"type\": \"record\", \"namespace\": \"com.example\", \"name\": \"FullName\", \"fields\": [{\"name\": \"first\", \"type\": \"string\"},{\"name\": \"last\", \"type\": \"string\"}]}"
- to:
uri: "kamelet:avro-deserialize-action"
parameters:
schema: "{\"type\": \"record\", \"namespace\": \"com.example\", \"name\": \"FullName\", \"fields\": [{\"name\": \"first\", \"type\": \"string\"},{\"name\": \"last\", \"type\": \"string\"}]}"
- to:
uri: "kamelet:json-serialize-action"
- to:
uri: "log:info"
steps:
- to:
uri: "kamelet:json-deserialize-action"
- to:
uri: "kamelet:avro-serialize-action"
parameters:
schema: "{\"type\": \"record\", \"namespace\": \"com.example\", \"name\": \"FullName\", \"fields\": [{\"name\": \"first\", \"type\": \"string\"},{\"name\": \"last\", \"type\": \"string\"}]}"
- to:
uri: "kamelet:avro-deserialize-action"
parameters:
schema: "{\"type\": \"record\", \"namespace\": \"com.example\", \"name\": \"FullName\", \"fields\": [{\"name\": \"first\", \"type\": \"string\"},{\"name\": \"last\", \"type\": \"string\"}]}"
- to:
uri: "kamelet:json-serialize-action"
- to:
uri: "log:info"
18 changes: 9 additions & 9 deletions templates/bindings/core/avro-serialize-action-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
parameters:
period: 1000
message: '{"first":"Ada","last":"Lovelace"}'
steps:
- to:
uri: "kamelet:json-deserialize-action"
- to:
uri: "kamelet:avro-serialize-action"
parameters:
schema: "{\"type\": \"record\", \"namespace\": \"com.example\", \"name\": \"FullName\", \"fields\": [{\"name\": \"first\", \"type\": \"string\"},{\"name\": \"last\", \"type\": \"string\"}]}"
- to:
uri: "log:info"
steps:
- to:
uri: "kamelet:json-deserialize-action"
- to:
uri: "kamelet:avro-serialize-action"
parameters:
schema: "{\"type\": \"record\", \"namespace\": \"com.example\", \"name\": \"FullName\", \"fields\": [{\"name\": \"first\", \"type\": \"string\"},{\"name\": \"last\", \"type\": \"string\"}]}"
- to:
uri: "log:info"
17 changes: 8 additions & 9 deletions templates/bindings/core/aws-cloudwatch-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-cloudwatch-sink"
parameters:
accessKey: "The Access Key"
cwNamespace: "The Cloud Watch Namespace"
region: "eu-west-1"
secretKey: "The Secret Key"

steps:
- to:
uri: "kamelet:aws-cloudwatch-sink"
parameters:
accessKey: "The Access Key"
cwNamespace: "The Cloud Watch Namespace"
region: "eu-west-1"
secretKey: "The Secret Key"
7 changes: 3 additions & 4 deletions templates/bindings/core/aws-ddb-streams-source-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
region: "eu-west-1"
secretKey: "The Secret Key"
table: "The Table"
steps:
- to:
uri: "log:info"

steps:
- to:
uri: "log:info"
15 changes: 7 additions & 8 deletions templates/bindings/core/aws-ec2-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-ec2-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"

steps:
- to:
uri: "kamelet:aws-ec2-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
18 changes: 9 additions & 9 deletions templates/bindings/core/aws-kinesis-firehose-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-kinesis-firehose-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
streamName: "The Stream Name"
steps:
- to:
uri: "kamelet:aws-kinesis-firehose-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
streamName: "The Stream Name"

17 changes: 8 additions & 9 deletions templates/bindings/core/aws-kinesis-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-kinesis-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
stream: "The Stream Name"

steps:
- to:
uri: "kamelet:aws-kinesis-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
stream: "The Stream Name"
7 changes: 3 additions & 4 deletions templates/bindings/core/aws-kinesis-source-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
region: "eu-west-1"
secretKey: "The Secret Key"
stream: "The Stream Name"
steps:
- to:
uri: "log:info"

steps:
- to:
uri: "log:info"
17 changes: 8 additions & 9 deletions templates/bindings/core/aws-lambda-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-lambda-sink"
parameters:
accessKey: "The Access Key"
function: "The Function Name"
region: "eu-west-1"
secretKey: "The Secret Key"

steps:
- to:
uri: "kamelet:aws-lambda-sink"
parameters:
accessKey: "The Access Key"
function: "The Function Name"
region: "eu-west-1"
secretKey: "The Secret Key"
19 changes: 9 additions & 10 deletions templates/bindings/core/aws-redshift-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-redshift-sink"
parameters:
databaseName: "The Database Name"
password: "The Password"
query: "INSERT INTO accounts (username,city) VALUES (:#username,:#city)"
serverName: "localhost"
username: "The Username"

steps:
- to:
uri: "kamelet:aws-redshift-sink"
parameters:
databaseName: "The Database Name"
password: "The Password"
query: "INSERT INTO accounts (username,city) VALUES (:#username,:#city)"
serverName: "localhost"
username: "The Username"
7 changes: 3 additions & 4 deletions templates/bindings/core/aws-redshift-source-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
query: "INSERT INTO accounts (username,city) VALUES (:#username,:#city)"
serverName: "localhost"
username: "The Username"
steps:
- to:
uri: "log:info"

steps:
- to:
uri: "log:info"
17 changes: 8 additions & 9 deletions templates/bindings/core/aws-s3-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-s3-sink"
parameters:
accessKey: "The Access Key"
bucketNameOrArn: "The Bucket Name"
region: "eu-west-1"
secretKey: "The Secret Key"

steps:
- to:
uri: "kamelet:aws-s3-sink"
parameters:
accessKey: "The Access Key"
bucketNameOrArn: "The Bucket Name"
region: "eu-west-1"
secretKey: "The Secret Key"
7 changes: 3 additions & 4 deletions templates/bindings/core/aws-s3-source-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
bucketNameOrArn: "The Bucket Name"
region: "eu-west-1"
secretKey: "The Secret Key"
steps:
- to:
uri: "log:info"

steps:
- to:
uri: "log:info"
19 changes: 9 additions & 10 deletions templates/bindings/core/aws-s3-streaming-upload-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-s3-streaming-upload-sink"
parameters:
accessKey: "The Access Key"
bucketNameOrArn: "The Bucket Name"
keyName: "The Key Name"
region: "eu-west-1"
secretKey: "The Secret Key"

steps:
- to:
uri: "kamelet:aws-s3-streaming-upload-sink"
parameters:
accessKey: "The Access Key"
bucketNameOrArn: "The Bucket Name"
keyName: "The Key Name"
region: "eu-west-1"
secretKey: "The Secret Key"
15 changes: 7 additions & 8 deletions templates/bindings/core/aws-secrets-manager-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-secrets-manager-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"

steps:
- to:
uri: "kamelet:aws-secrets-manager-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
17 changes: 8 additions & 9 deletions templates/bindings/core/aws-sns-fifo-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-sns-fifo-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
topicNameOrArn: "The Topic Name"

steps:
- to:
uri: "kamelet:aws-sns-fifo-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
topicNameOrArn: "The Topic Name"
17 changes: 8 additions & 9 deletions templates/bindings/core/aws-sns-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-sns-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
topicNameOrArn: "The Topic Name"

steps:
- to:
uri: "kamelet:aws-sns-sink"
parameters:
accessKey: "The Access Key"
region: "eu-west-1"
secretKey: "The Secret Key"
topicNameOrArn: "The Topic Name"
19 changes: 9 additions & 10 deletions templates/bindings/core/aws-sqs-batch-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-sqs-batch-sink"
parameters:
accessKey: "The Access Key"
batchSeparator: ","
queueNameOrArn: "The Queue Name"
region: "eu-west-1"
secretKey: "The Secret Key"

steps:
- to:
uri: "kamelet:aws-sqs-batch-sink"
parameters:
accessKey: "The Access Key"
batchSeparator: ","
queueNameOrArn: "The Queue Name"
region: "eu-west-1"
secretKey: "The Secret Key"
17 changes: 8 additions & 9 deletions templates/bindings/core/aws-sqs-fifo-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
parameters:
period: 1000
message: "Hello Camel JBang"
steps:
- to:
uri: "kamelet:aws-sqs-fifo-sink"
parameters:
accessKey: "The Access Key"
queueNameOrArn: "The Queue Name"
region: "eu-west-1"
secretKey: "The Secret Key"

steps:
- to:
uri: "kamelet:aws-sqs-fifo-sink"
parameters:
accessKey: "The Access Key"
queueNameOrArn: "The Queue Name"
region: "eu-west-1"
secretKey: "The Secret Key"
Loading