You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/12/14 08:57:33 UTC

[camel-kamelets] branch main updated: Rename cloudwatch cw_namespace property

This is an automated email from the ASF dual-hosted git repository.

acosentino 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 ca29725  Rename cloudwatch cw_namespace property
ca29725 is described below

commit ca29725e28304bbc1256e263f678a20a38b473eb
Author: tplevko <tp...@redhat.com>
AuthorDate: Tue Dec 14 09:41:20 2021 +0100

    Rename cloudwatch cw_namespace property
---
 docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc               | 10 +++++-----
 kamelets/aws-cloudwatch-sink.kamelet.yaml                      |  6 +++---
 .../main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml   |  6 +++---
 templates/bindings/camel-k/aws-cloudwatch-sink-binding.yaml    |  2 +-
 templates/bindings/core/aws-cloudwatch-sink-binding.yaml       |  2 +-
 5 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc b/docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc
index 024701d..e950aee 100644
--- a/docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc
+++ b/docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc
@@ -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| | 
 |===
@@ -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"
   
@@ -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.
@@ -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"
   
@@ -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.
diff --git a/kamelets/aws-cloudwatch-sink.kamelet.yaml b/kamelets/aws-cloudwatch-sink.kamelet.yaml
index b1c20c1..5530f70 100644
--- a/kamelets/aws-cloudwatch-sink.kamelet.yaml
+++ b/kamelets/aws-cloudwatch-sink.kamelet.yaml
@@ -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
@@ -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}}"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml
index b1c20c1..5530f70 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml
@@ -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
@@ -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}}"
diff --git a/templates/bindings/camel-k/aws-cloudwatch-sink-binding.yaml b/templates/bindings/camel-k/aws-cloudwatch-sink-binding.yaml
index 3506d9c..9c4f495 100644
--- a/templates/bindings/camel-k/aws-cloudwatch-sink-binding.yaml
+++ b/templates/bindings/camel-k/aws-cloudwatch-sink-binding.yaml
@@ -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"
   
\ No newline at end of file
diff --git a/templates/bindings/core/aws-cloudwatch-sink-binding.yaml b/templates/bindings/core/aws-cloudwatch-sink-binding.yaml
index 61182e5..7fe900b 100644
--- a/templates/bindings/core/aws-cloudwatch-sink-binding.yaml
+++ b/templates/bindings/core/aws-cloudwatch-sink-binding.yaml
@@ -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"
     
\ No newline at end of file