Skip to content

[Feature]: add ability for with_resource to merge Resources on providers  #2324

@pitoniak32

Description

@pitoniak32

Related Problems?

Resulting from a conversation with @cijothomas about ResourceBuilder and Signal Providers

Would like to hear thoughts on this!

Describe the solution you'd like:

Instead of replacing the Resource on a Provider if .with_resource is called multiple times, it would be good if we could build up a resource from many calls on the provider.

A few on how this could work:

We could add something like .with_resource_builder(…) that will aggregate on top of the existing resource / other builders in the provider.

Or update the .with_resource to just merge with existing resources so it can be called multiple times.

Or maybe both

Considered Alternatives

No response

Additional Context

relates to: #2320

inspired by:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions