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

Make it possible to nest runtime components #2909

Merged
merged 3 commits into from
Aug 22, 2023

Conversation

jdisanti
Copy link
Collaborator

@jdisanti jdisanti commented Aug 8, 2023

Runtime plugins need to be able to wrap components configured in other runtime components. For example, one runtime plugin should be able to wrap the HTTP connector configured in another runtime plugin.

This PR makes this possible by:

  • Introducing the ability to order runtime plugins within the service/operation plugin "levels".
  • Adding an argument to RuntimePlugin::runtime_components so that implementations can reference components configured by previous plugins.

The order function has three separate order values: Defaults, Overrides, and NestedComponents. The Defaults order is currently unused, but will be used later when we refactor how defaults in config work. Everything defaults to Overrides since most runtime plugins will want to be in this slot. The NestedComponents order is specifically for runtime plugins that want to create nested components, and runs at the very end.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jdisanti jdisanti force-pushed the jdisanti-nested-runtime-components branch from e584dbe to a8e8686 Compare August 8, 2023 23:48
@jdisanti jdisanti marked this pull request as ready for review August 8, 2023 23:52
@jdisanti jdisanti requested review from a team as code owners August 8, 2023 23:52
@jdisanti jdisanti added needs-sdk-review breaking-change This will require a breaking change labels Aug 8, 2023
@github-actions
Copy link

github-actions bot commented Aug 9, 2023

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link
Contributor

@ysaito1001 ysaito1001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@jdisanti jdisanti added this pull request to the merge queue Aug 22, 2023
Merged via the queue into main with commit 67830dc Aug 22, 2023
41 checks passed
@jdisanti jdisanti deleted the jdisanti-nested-runtime-components branch August 22, 2023 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This will require a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants