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

Azure Kamelets: Reflect changes coming from CAMEL-18590 - Azure Eventhubs #1851

Merged
merged 4 commits into from
Jan 25, 2024
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
17 changes: 13 additions & 4 deletions kamelets/azure-eventhubs-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ spec:
The Kamelet checks for the `partition-id` / `ce-partition-id` header which is an identifier of the Event Hub partition that the event will be sent to. If the identifier is not specified, the Event Hubs service will be responsible for routing events that are sent to an available partition.

A header is optional. If the header is not set, the partition is assigned by Event Hubs.

There are two different mechanism of authentication `CONNECTION_STRING` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `CONNECTION_STRING` sharedAccessName and sharedAccessKey properties 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:
- namespaceName
- eventhubName
- sharedAccessName
- sharedAccessKey
type: object
properties:
namespaceName:
Expand All @@ -65,6 +67,12 @@ spec:
format: password
x-descriptors:
- urn:camel:group:credentials
credentialType:
title: Credential Type
description: Determines the credential strategy to adopt.
type: string
enum: ["CONNECTION_STRING", "AZURE_IDENTITY"]
default: "CONNECTION_STRING"
dependencies:
- "camel:core"
- "camel:azure-eventhubs"
Expand All @@ -88,5 +96,6 @@ spec:
- to:
uri: "azure-eventhubs://{{namespaceName}}/{{eventhubName}}"
parameters:
sharedAccessName: "{{sharedAccessName}}"
sharedAccessKey: "{{sharedAccessKey}}"
sharedAccessName: "{{?sharedAccessName}}"
sharedAccessKey: "{{?sharedAccessKey}}"
credentialType: "{{credentialType}}"
17 changes: 13 additions & 4 deletions kamelets/azure-eventhubs-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ spec:
title: "Azure Eventhubs Source"
description: |-
Receive events from Azure Event Hubs.

There are two different mechanism of authentication `CONNECTION_STRING` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `CONNECTION_STRING` sharedAccessName and sharedAccessKey properties 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:
- namespaceName
- eventhubName
- sharedAccessName
- sharedAccessKey
- blobAccountName
- blobAccessKey
- blobContainerName
Expand Down Expand Up @@ -79,6 +81,12 @@ spec:
format: password
x-descriptors:
- urn:camel:group:credentials
credentialType:
title: Credential Type
description: Determines the credential strategy to adopt.
type: string
enum: ["CONNECTION_STRING", "AZURE_IDENTITY"]
default: "CONNECTION_STRING"
types:
out:
mediaType: application/octet-stream
Expand All @@ -90,10 +98,11 @@ spec:
from:
uri: 'azure-eventhubs://{{namespaceName}}/{{eventhubName}}'
parameters:
sharedAccessName: "{{sharedAccessName}}"
sharedAccessKey: "{{sharedAccessKey}}"
sharedAccessName: "{{?sharedAccessName}}"
sharedAccessKey: "{{?sharedAccessKey}}"
blobAccountName: "{{blobAccountName}}"
blobAccessKey: "{{blobAccessKey}}"
blobContainerName: "{{blobContainerName}}"
credentialType: "{{credentialType}}"
steps:
- to: "kamelet:sink"
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ spec:
The Kamelet checks for the `partition-id` / `ce-partition-id` header which is an identifier of the Event Hub partition that the event will be sent to. If the identifier is not specified, the Event Hubs service will be responsible for routing events that are sent to an available partition.

A header is optional. If the header is not set, the partition is assigned by Event Hubs.

There are two different mechanism of authentication `CONNECTION_STRING` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `CONNECTION_STRING` sharedAccessName and sharedAccessKey properties 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:
- namespaceName
- eventhubName
- sharedAccessName
- sharedAccessKey
type: object
properties:
namespaceName:
Expand All @@ -65,6 +67,12 @@ spec:
format: password
x-descriptors:
- urn:camel:group:credentials
credentialType:
title: Credential Type
description: Determines the credential strategy to adopt.
type: string
enum: ["CONNECTION_STRING", "AZURE_IDENTITY"]
default: "CONNECTION_STRING"
dependencies:
- "camel:core"
- "camel:azure-eventhubs"
Expand All @@ -88,5 +96,6 @@ spec:
- to:
uri: "azure-eventhubs://{{namespaceName}}/{{eventhubName}}"
parameters:
sharedAccessName: "{{sharedAccessName}}"
sharedAccessKey: "{{sharedAccessKey}}"
sharedAccessName: "{{?sharedAccessName}}"
sharedAccessKey: "{{?sharedAccessKey}}"
credentialType: "{{credentialType}}"
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ spec:
title: "Azure Eventhubs Source"
description: |-
Receive events from Azure Event Hubs.

There are two different mechanism of authentication `CONNECTION_STRING` and `AZURE_IDENTITY`, you could specify with credentialType property. If you're using `CONNECTION_STRING` sharedAccessName and sharedAccessKey properties 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:
- namespaceName
- eventhubName
- sharedAccessName
- sharedAccessKey
- blobAccountName
- blobAccessKey
- blobContainerName
Expand Down Expand Up @@ -79,6 +81,12 @@ spec:
format: password
x-descriptors:
- urn:camel:group:credentials
credentialType:
title: Credential Type
description: Determines the credential strategy to adopt.
type: string
enum: ["CONNECTION_STRING", "AZURE_IDENTITY"]
default: "CONNECTION_STRING"
types:
out:
mediaType: application/octet-stream
Expand All @@ -90,10 +98,11 @@ spec:
from:
uri: 'azure-eventhubs://{{namespaceName}}/{{eventhubName}}'
parameters:
sharedAccessName: "{{sharedAccessName}}"
sharedAccessKey: "{{sharedAccessKey}}"
sharedAccessName: "{{?sharedAccessName}}"
sharedAccessKey: "{{?sharedAccessKey}}"
blobAccountName: "{{blobAccountName}}"
blobAccessKey: "{{blobAccessKey}}"
blobContainerName: "{{blobContainerName}}"
credentialType: "{{credentialType}}"
steps:
- to: "kamelet:sink"
Loading