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

[FEAT] Support configuration updates #126

Open
brooksmtownsend opened this issue Aug 6, 2024 · 0 comments
Open

[FEAT] Support configuration updates #126

brooksmtownsend opened this issue Aug 6, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers provider-sdk wasmCloud Provider SDK related

Comments

@brooksmtownsend
Copy link
Member

See wasmCloud/wasmCloud#1648 for the original issue for implementing this in the wasmCloud host, and wasmCloud/wasmCloud#2436 for the implementation in the host and provider-sdk on the Rust side.

The Go provider SDK should add an additional subject to listen on, wasmbus.ctl.<lattice>.<provider_id>.config.update where capability providers can receive a map[string]string that updates their internal configuration. This should be another option when initializing the provider so that if config changes, like a default port or default connection string, capability provider developers can take the steps needed to update the provider.

This is a good-first-issue since there's a reference implementation in Rust, and is just additive 😄 It would be a good practice to add a piece of configuration to the example, like a prefix for the sync.Map, and then update it for testing. This feature should be available for testing in wasmCloud 1.2, so you may need to run wasmCloud from main or from a release candidate until it's ready.

@brooksmtownsend brooksmtownsend added enhancement New feature or request good first issue Good for newcomers labels Aug 6, 2024
@joonas joonas transferred this issue from wasmCloud/provider-sdk-go Jan 2, 2025
@joonas joonas added the provider-sdk wasmCloud Provider SDK related label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers provider-sdk wasmCloud Provider SDK related
Projects
None yet
Development

No branches or pull requests

2 participants