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 2024/01/25 11:02:33 UTC
(camel-kamelets) 01/06: Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kamelets-1805-cosmosdb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit dc0141c47a11bcf31a0a7b8ce772f55577d42fe0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 11:50:33 2024 +0100
Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure CosmosDB Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/azure-cosmosdb-sink.kamelet.yaml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/kamelets/azure-cosmosdb-sink.kamelet.yaml b/kamelets/azure-cosmosdb-sink.kamelet.yaml
index a45cc667..2e077c57 100644
--- a/kamelets/azure-cosmosdb-sink.kamelet.yaml
+++ b/kamelets/azure-cosmosdb-sink.kamelet.yaml
@@ -37,10 +37,13 @@ spec:
In the headers, you can optionally set the `itemPartitionKey` / `ce-itemPartitionKey` property to specify the partition key for a specific item.
If you do not set the property in the header, you'll need to use the static property itemPartitonKey.
+
+ There are two different mechanism of authentication `SHARED_ACCOUNT_KEY` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `SHARED_ACCOUNT_KEY` accountKey property will be needed.
+
+ In case of `AZURE_IDENTITY` selection, the DefaultAzureCredential will attempt to authenticate via the following mechanisms in the following order enviroment, Workload Identity, Managed Identity, Azure Developer CLI, IntelliJ, Azure CLI and Azure Powershell.
required:
- databaseName
- containerName
- - accountKey
- databaseEndpoint
type: object
properties:
@@ -67,6 +70,12 @@ spec:
title: Item Partition Key
description: Represents a partition key value in the Azure Cosmos DB database service. A partition key identifies the partition where the item is stored in.
type: string
+ credentialType:
+ title: Credential Type
+ description: Determines the credential strategy to adopt.
+ type: string
+ enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
+ default: "SHARED_ACCOUNT_KEY"
types:
in:
mediaType: application/json
@@ -106,4 +115,5 @@ spec:
databaseEndpoint: "{{databaseEndpoint}}"
itemPartitionKey: "{{?itemPartitionKey}}"
operation: createItem
+ credentialType: "{{credentialType}}"