apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: azure-eventhubs-binding
  namespace: default
spec:
  type: bindings.azure.eventhubs
  version: v1
  metadata:
    - name: eventHubNamespace
      secretKeyRef:
        name: AzureEventHubsBindingsNamespace
        key: AzureEventHubsBindingsNamespace 
    - name: connectionString
      secretKeyRef:
        name: AzureEventHubsBindingsConnectionString
        value: AzureEventHubsBindingsConnectionString   
    - name: azureTenantId
      secretKeyRef:
        name: AzureCertificationTenantId
        key: AzureCertificationTenantId    
    - name: azureClientId
      secretKeyRef:
        name: AzureCertificationServicePrincipalClientId
        key: AzureCertificationServicePrincipalClientId   
    - name: azureClientSecret
      secretKeyRef:
        name: AzureCertificationServicePrincipalClientSecret
        key: AzureCertificationServicePrincipalClientSecret
    - name: resourceGroupName
      secretKeyRef:
        name: AzureResourceGroupName
        key: AzureResourceGroupName
    - name: subscriptionID
      secretKeyRef:
        name: AzureCertificationSubscriptionId
        key: AzureCertificationSubscriptionId
    - name: consumerGroup 
      secretKeyRef:
        name: AzureEventHubsBindingsConsumerGroup
        value: AzureEventHubsBindingsConsumerGroup
    - name: storageAccountName
      secretKeyRef:
        name: AzureBlobStorageAccount
        key: AzureBlobStorageAccount
    - name: storageAccountKey
      secretKeyRef:
        name: AzureBlobStorageAccessKey
        key: AzureBlobStorageAccessKey
    - name: storageContainerName
      secretKeyRef:
        name: AzureEventHubsBindingsContainer
        value: AzureEventHubsBindingsContainer
    - name: partitionID
      value: 0
auth:
  secretStore: envvar-secret-store
