-
Notifications
You must be signed in to change notification settings - Fork 95
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
Implementation of Dapr Building Block: Configuration Store #7889
Comments
👋 @SoTrx Thanks for filing this feature request. A project maintainer will review this feature request and get back to you soon. We also welcome community contributions! If you would like to pick this item up sooner and submit a pull request, please visit our contribution guidelines and assign this to yourself by commenting "/assign" on this issue. For more information on our triage process please visit our triage overview |
👍 We've reviewed this issue and have agreed to add it to our backlog. Please subscribe to this issue for notifications, we'll provide updates when we pick it up. We also welcome community contributions! If you would like to pick this item up sooner and submit a pull request, please visit our contribution guidelines and assign this to yourself by commenting "/assign" on this issue. For more information on our triage process please visit our triage overview |
@SoTrx, thanks for your willingness to contribute! Pls don't hesitate to reach out for support. |
/assign |
Changes for usersThis update introduces the Dapr Configuration Building Block, enabling applications to consume configuration data as read-only key/value pairs and receive notifications via callback when changes occur. The configuration is stored in a backing service, which can be any Dapr-supported service. From a Radius user perspective, the configuration store is accessed as resource myapp 'Applications.Core/containers@2023-10-01-preview' = {
name: '${baseName}-ctnr'
properties: {
connections: {
config: {
source: configStore.id
}
}
...
}
}
resource configStore 'Applications.Dapr/configurationStores@2023-10-01-preview' = {
name: '${baseName}-cpn'
properties: {
application: app.id
environment: env.id
}
} Using a connection with a ctx := context.Background()
client, _:= dapr.NewClient()
// Retrieve the initial configuration values for key "config_key"
items, err := client.GetConfigurationItems(ctx, CONNECTION_CONFIG_COMPONENTNAME, ["config_key"])
// Subscribe to updates to the values of "config_key"
subId, _:= client.SubscribeConfigurationItems(ctx, CONNECTION_CONFIG_COMPONENTNAME, []string{"config_key"}) Changes in RadiusThis change adds the resource type This changes adds the resource type application.Dapr/ConfigurationStores to the Dapr resource provider. This addition has no side-effect on other resources in the provider. Frontend
Inner representationtype DaprConfigurationStore struct {
v1.BaseResource
// (Properties common to other components)
Properties DaprConfigurationStoreProperties `json:"properties"`
// ResourceMetadata represents internal DataModel properties common to all portable resource types.
datamodel.PortableResourceMetadata
} Example emitted componentapiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: configstore
[labels]
spec:
type: configuration.redis
metadata:
- name: redisHost
value: localhost:6379
- name: redisPassword
value: <PASSWORD> Let me know If I need to add anything to this description |
Overview of feature request
The Dapr configuration building block allows for dynamic configuration updates, including feature flag management.
For Radius, supporting this building block could enhance the "code once, deploy everywhere" approach, as platform differences may necessitate the use of feature flags.
Acceptance criteria
Additional context
https://docs.dapr.io/developing-applications/building-blocks/configuration/
Would you like to support us?
AB#13152
The text was updated successfully, but these errors were encountered: