Skip to content

Commit

Permalink
Dapr Resource Schema Update
Browse files Browse the repository at this point in the history
More context: radius-project/radius#7823

Signed-off-by: karishma-chawla <[email protected]>
  • Loading branch information
kachawla committed Sep 6, 2024
1 parent ac2909a commit f011687
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 12 deletions.
12 changes: 9 additions & 3 deletions samples/dapr/dapr-azure.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,15 @@ resource stateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
{ id: account::tableServices::table.id }
]
metadata: {
accountName: account.name
accountKey: account.listKeys().keys[0].value
tableName: account::tableServices::table.name
accountName: {
value: account.name
}
accountKey: {
value: account.listKeys().keys[0].value
}
tableName: {
value: account::tableServices::table.name
}
}
type: 'state.azure.tablestorage'
version: 'v1'
Expand Down
8 changes: 6 additions & 2 deletions samples/dapr/dapr.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ resource stateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
type: 'state.redis'
version: 'v1'
metadata: {
redisHost: '${service.metadata.name}.${namespace}.svc.cluster.local:${service.spec.ports[0].port}'
redisPassword: ''
redisHost: {
value: '${service.metadata.name}.${namespace}.svc.cluster.local:${service.spec.ports[0].port}'
}
redisPassword: {
value: ''
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion samples/eshop-dapr/infra/dapr-pub-sub.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ resource daprPubSubBroker 'Applications.Dapr/pubSubBrokers@2023-10-01-preview' =
type: 'pubsub.azure.servicebus.topics'
version: 'v1'
metadata: {
connectionString: serviceBus::authorizationRule.listKeys().primaryConnectionString
connectionString: {
value: serviceBus::authorizationRule.listKeys().primaryConnectionString
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion samples/eshop-dapr/infra/dapr-secret-store.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ resource daprSecretStore 'Applications.Dapr/secretStores@2023-10-01-preview' = {
type: 'secretstores.azure.keyvault'
version: 'v1'
metadata: {
vaultName: keyVaultName
vaultName: {
value: keyVaultName
}
}
}
}
Expand Down
20 changes: 15 additions & 5 deletions samples/eshop-dapr/infra/dapr-state-store.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,21 @@ resource daprStateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
type: 'state.azure.cosmosdb'
version: 'v1'
metadata: {
url: cosmosAccount.properties.documentEndpoint
masterKey: cosmosAccount.listKeys().primaryMasterKey
database: cosmosDbName
collection: cosmosDbCollectionName
actorStateStore: 'true'
url: {
value: cosmosAccount.properties.documentEndpoint
}
masterKey: {
value: cosmosAccount.listKeys().primaryMasterKey
}
database: {
value: cosmosDbName
}
collection: {
value: cosmosDbCollectionName
}
actorStateStore: {
value: 'true'
}
}
}
}
Expand Down

0 comments on commit f011687

Please sign in to comment.