Skip to content

Commit

Permalink
Merge branch 'master' into add-ctx-state
Browse files Browse the repository at this point in the history
  • Loading branch information
yaron2 authored May 6, 2022
2 parents 37d4a32 + 47db6cc commit ca1a793
Show file tree
Hide file tree
Showing 18 changed files with 2,143 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/certification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
required-secrets: AzureServiceBusConnectionString
- component: bindings.azure.cosmosdb
required-secrets: AzureCosmosDBUrl,AzureCosmosDB,AzureCosmosDBCollection,AzureCosmosDBMasterKey,AzureCertificationTenantId,AzureCertificationServicePrincipalClientId,AzureCertificationServicePrincipalClientSecret
- component: bindings.azure.eventhubs
required-secrets: AzureEventHubsBindingsConnectionString,AzureBlobStorageAccount,AzureBlobStorageAccessKey,AzureEventHubsBindingsHub,AzureEventHubsBindingsNamespace,AzureCertificationServicePrincipalClientId,AzureCertificationTenantId,AzureCertificationServicePrincipalClientSecret,AzureResourceGroupName,AzureCertificationSubscriptionId,AzureEventHubsBindingsContainer,AzureIotHubEventHubConnectionString,AzureIotHubName,AzureIotHubBindingsConsumerGroup
- component: pubsub.azure.eventhubs
required-secrets: AzureEventHubsPubsubTopicActiveConnectionString,AzureEventHubsPubsubNamespace,AzureEventHubsPubsubNamespaceConnectionString,AzureBlobStorageAccount,AzureBlobStorageAccessKey,AzureEventHubsPubsubContainer,AzureIotHubName,AzureIotHubEventHubConnectionString,AzureCertificationTenantId,AzureCertificationServicePrincipalClientId,AzureCertificationServicePrincipalClientSecret,AzureResourceGroupName,AzureCertificationSubscriptionId
EOF
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: azure-single-partition-binding
namespace: default
spec:
type: bindings.azure.eventhubs
version: v1
metadata:
- name: connectionString # Azure EventHubs connection string
secretKeyRef:
name: AzureEventHubsBindingsConnectionString
value: AzureEventHubsBindingsConnectionString
- name: consumerGroup # EventHubs consumer group
secretKeyRef:
name: AzureEventHubsBindingsConsumerGroup
value: AzureEventHubsBindingsConsumerGroup
- name: storageAccountName # Azure Storage Account Name
secretKeyRef:
name: AzureBlobStorageAccount
value: AzureBlobStorageAccount
- name: storageAccountKey # Azure Storage Account Key
secretKeyRef:
name: AzureBlobStorageAccessKey
value: AzureBlobStorageAccessKey
- name: storageContainerName # Azure Storage Container Name
secretKeyRef:
name: AzureEventHubsBindingsContainer
value: AzureEventHubsBindingsContainer
- name: partitionID
value: 0
auth:
secretStore: envvar-secret-store
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: envvar-secret-store
namespace: default
spec:
type: secretstores.local.env
version: v1
metadata:
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: azure-input-binding
namespace: default
spec:
type: bindings.azure.eventhubs
version: v1
metadata:
- name: connectionString # Azure EventHubs connection string
secretKeyRef:
name: AzureEventHubsBindingsConnectionString
value: AzureEventHubsBindingsConnectionString
- name: consumerGroup # EventHubs consumer group
secretKeyRef:
name: AzureEventHubsBindingsConsumerGroup
value: AzureEventHubsBindingsConsumerGroup
- name: storageAccountName # Azure Storage Account Name
secretKeyRef:
name: AzureBlobStorageAccount
value: AzureBlobStorageAccount
- name: storageAccountKey # Azure Storage Account Key
secretKeyRef:
name: AzureBlobStorageAccessKey
value: AzureBlobStorageAccessKey
- name: storageContainerName # Azure Storage Container Name
secretKeyRef:
name: AzureEventHubsBindingsContainer
value: AzureEventHubsBindingsContainer
auth:
secretStore: envvar-secret-store
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: azure-output-binding
namespace: default
spec:
type: bindings.azure.eventhubs
version: v1
metadata:
- name: connectionString # Azure EventHubs connection string
secretKeyRef:
name: AzureEventHubsBindingsConnectionString
value: AzureEventHubsBindingsConnectionString
- name: consumerGroup # EventHubs consumer group
secretKeyRef:
name: AzureEventHubsBindingsConsumerGroup
value: AzureEventHubsBindingsConsumerGroup
- name: storageAccountName # Azure Storage Account Name
secretKeyRef:
name: AzureBlobStorageAccount
value: AzureBlobStorageAccount
- name: storageAccountKey # Azure Storage Account Key
secretKeyRef:
name: AzureBlobStorageAccessKey
value: AzureBlobStorageAccessKey
- name: storageContainerName # Azure Storage Container Name
secretKeyRef:
name: AzureEventHubsBindingsContainer
value: AzureEventHubsBindingsContainer
auth:
secretStore: envvar-secret-store
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: envvar-secret-store
namespace: default
spec:
type: secretstores.local.env
version: v1
metadata:
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: azure-partition0-binding
namespace: default
spec:
type: bindings.azure.eventhubs
version: v1
metadata:
- name: connectionString # Azure EventHubs connection string
secretKeyRef:
name: AzureEventHubsBindingsConnectionString
value: AzureEventHubsBindingsConnectionString
- name: consumerGroup # EventHubs consumer group
secretKeyRef:
name: AzureEventHubsBindingsConsumerGroup
value: AzureEventHubsBindingsConsumerGroup
- name: storageAccountName # Azure Storage Account Name
secretKeyRef:
name: AzureBlobStorageAccount
value: AzureBlobStorageAccount
- name: storageAccountKey # Azure Storage Account Key
secretKeyRef:
name: AzureBlobStorageAccessKey
value: AzureBlobStorageAccessKey
- name: storageContainerName # Azure Storage Container Name
secretKeyRef:
name: AzureEventHubsBindingsContainer
value: AzureEventHubsBindingsContainer
- name: partitionID
value: 0
auth:
secretStore: envvar-secret-store
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: azure-partition1-binding
namespace: default
spec:
type: bindings.azure.eventhubs
version: v1
metadata:
- name: connectionString # Azure EventHubs connection string
secretKeyRef:
name: AzureEventHubsBindingsConnectionString
value: AzureEventHubsBindingsConnectionString
- name: consumerGroup # EventHubs consumer group
secretKeyRef:
name: AzureEventHubsBindingsConsumerGroup
value: AzureEventHubsBindingsConsumerGroup
- name: storageAccountName # Azure Storage Account Name
secretKeyRef:
name: AzureBlobStorageAccount
value: AzureBlobStorageAccount
- name: storageAccountKey # Azure Storage Account Key
secretKeyRef:
name: AzureBlobStorageAccessKey
value: AzureBlobStorageAccessKey
- name: storageContainerName # Azure Storage Container Name
secretKeyRef:
name: AzureEventHubsBindingsContainer
value: AzureEventHubsBindingsContainer
- name: partitionID
value: 1
auth:
secretStore: envvar-secret-store

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: envvar-secret-store
namespace: default
spec:
type: secretstores.local.env
version: v1
metadata:
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: azure-eventhubs-binding
namespace: default
spec:
type: bindings.azure.eventhubs
version: v1
metadata:
- name: connectionString
secretKeyRef:
name: AzureIotHubEventHubConnectionString
key: AzureIotHubEventHubConnectionString
- name: storageAccountName
secretKeyRef:
name: AzureBlobStorageAccount
key: AzureBlobStorageAccount
- name: storageAccountKey
secretKeyRef:
name: AzureBlobStorageAccessKey
key: AzureBlobStorageAccessKey
- name: storageContainerName
secretKeyRef:
name: AzureEventHubsBindingsContainer
key: AzureEventHubsBindingsContainer
- name: iotHub
secretKeyRef:
name: AzureIotHubName
key: AzureIotHubName
- name: consumerGroup
secretKeyRef:
name: AzureIotHubBindingsConsumerGroup
key: AzureIotHubBindingsConsumerGroup
auth:
secretStore: envvar-secret-store
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: envvar-secret-store
namespace: default
spec:
type: secretstores.local.env
version: v1
metadata:
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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: 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: storageAccountName
secretKeyRef:
name: AzureBlobStorageAccount
key: AzureBlobStorageAccount
- name: storageAccountKey
secretKeyRef:
name: AzureBlobStorageAccessKey
key: AzureBlobStorageAccessKey
- name: storageContainerName
secretKeyRef:
name: AzureEventHubsBindingsContainer
key: AzureEventHubsBindingsContainer
- name: eventHub
secretKeyRef:
name: AzureEventHubsBindingsHub
key: AzureEventHubsBindingsHub
- name: consumerGroup
secretKeyRef:
name: AzureEventHubsBindingsConsumerGroup
key: AzureEventHubsBindingsConsumerGroup
auth:
secretStore: envvar-secret-store
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: envvar-secret-store
namespace: default
spec:
type: secretstores.local.env
version: v1
metadata:
6 changes: 6 additions & 0 deletions tests/certification/bindings/azure/eventhubs/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
name: eventhubsconfig
spec:
features:
Loading

0 comments on commit ca1a793

Please sign in to comment.