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

Rename cloudwatch cw_namespace property #626

Merged
merged 1 commit into from
Dec 14, 2021
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
10 changes: 5 additions & 5 deletions docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following table summarizes the configuration options available for the `aws-
|===
| Property| Name| Description| Type| Default| Example
| *accessKey {empty}* *| Access Key| The access key obtained from AWS.| string| |
| *cw_namespace {empty}* *| Cloud Watch Namespace| The cloud watch metric namespace.| string| |
| *cwNamespace {empty}* *| Cloud Watch Namespace| The cloud watch metric namespace.| string| |
| *region {empty}* *| AWS Region| The AWS region to connect to.| string| | `"eu-west-1"`
| *secretKey {empty}* *| Secret Key| The secret key obtained from AWS.| string| |
|===
Expand Down Expand Up @@ -67,7 +67,7 @@ spec:
name: aws-cloudwatch-sink
properties:
accessKey: "The Access Key"
cw_namespace: "The Cloud Watch Namespace"
cwNamespace: "The Cloud Watch Namespace"
region: "eu-west-1"
secretKey: "The Secret Key"

Expand All @@ -94,7 +94,7 @@ Configure and run the sink by using the following command:

[source,shell]
----
kamel bind channel:mychannel aws-cloudwatch-sink -p "sink.accessKey=The Access Key" -p "sink.cw_namespace=The Cloud Watch Namespace" -p "sink.region=eu-west-1" -p "sink.secretKey=The Secret Key"
kamel bind channel:mychannel aws-cloudwatch-sink -p "sink.accessKey=The Access Key" -p "sink.cwNamespace=The Cloud Watch Namespace" -p "sink.region=eu-west-1" -p "sink.secretKey=The Secret Key"
----

This command creates the KameletBinding in the current namespace on the cluster.
Expand Down Expand Up @@ -123,7 +123,7 @@ spec:
name: aws-cloudwatch-sink
properties:
accessKey: "The Access Key"
cw_namespace: "The Cloud Watch Namespace"
cwNamespace: "The Cloud Watch Namespace"
region: "eu-west-1"
secretKey: "The Secret Key"

Expand Down Expand Up @@ -152,7 +152,7 @@ Configure and run the sink by using the following command:

[source,shell]
----
kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic aws-cloudwatch-sink -p "sink.accessKey=The Access Key" -p "sink.cw_namespace=The Cloud Watch Namespace" -p "sink.region=eu-west-1" -p "sink.secretKey=The Secret Key"
kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic aws-cloudwatch-sink -p "sink.accessKey=The Access Key" -p "sink.cwNamespace=The Cloud Watch Namespace" -p "sink.region=eu-west-1" -p "sink.secretKey=The Secret Key"
----

This command creates the KameletBinding in the current namespace on the cluster.
Expand Down
6 changes: 3 additions & 3 deletions kamelets/aws-cloudwatch-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ spec:
`metric-dimension-name` / `ce-metricdimensionname` for the dimension name.
`metric-dimension-value` / `ce-metricdimensionvalue` for the dimension value.
required:
- cw_namespace
- cwNamespace
- accessKey
- secretKey
- region
type: object
properties:
cw_namespace:
cwNamespace:
title: Cloud Watch Namespace
description: The cloud watch metric namespace.
type: string
Expand Down Expand Up @@ -153,7 +153,7 @@ spec:
name: CamelAwsCwMetricDimensionValue
simple: "${header[ce-metricdimensionvalue]}"
- to:
uri: "aws2-cw:{{cw_namespace}}"
uri: "aws2-cw:{{cwNamespace}}"
parameters:
secretKey: "{{secretKey}}"
accessKey: "{{accessKey}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ spec:
`metric-dimension-name` / `ce-metricdimensionname` for the dimension name.
`metric-dimension-value` / `ce-metricdimensionvalue` for the dimension value.
required:
- cw_namespace
- cwNamespace
- accessKey
- secretKey
- region
type: object
properties:
cw_namespace:
cwNamespace:
title: Cloud Watch Namespace
description: The cloud watch metric namespace.
type: string
Expand Down Expand Up @@ -153,7 +153,7 @@ spec:
name: CamelAwsCwMetricDimensionValue
simple: "${header[ce-metricdimensionvalue]}"
- to:
uri: "aws2-cw:{{cw_namespace}}"
uri: "aws2-cw:{{cwNamespace}}"
parameters:
secretKey: "{{secretKey}}"
accessKey: "{{accessKey}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
name: aws-cloudwatch-sink
properties:
accessKey: "The Access Key"
cw_namespace: "The Cloud Watch Namespace"
cwNamespace: "The Cloud Watch Namespace"
region: "eu-west-1"
secretKey: "The Secret Key"

2 changes: 1 addition & 1 deletion templates/bindings/core/aws-cloudwatch-sink-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
uri: "kamelet:aws-cloudwatch-sink"
parameters:
accessKey: "The Access Key"
cw_namespace: "The Cloud Watch Namespace"
cwNamespace: "The Cloud Watch Namespace"
region: "eu-west-1"
secretKey: "The Secret Key"