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

Dynamic Bridged Providers: Plugin Aquisition #2080

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Jun 11, 2024

Broken off from #1973 for easier review.

Fixes https://github.com/pulumi/home/issues/3409

@iwahbe iwahbe self-assigned this Jun 11, 2024
@iwahbe iwahbe force-pushed the iwahbe/dynamic-provider-loader branch 2 times, most recently from e647f7b to eb21de6 Compare June 11, 2024 22:58
Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.21%. Comparing base (ed2a84b) to head (f801aef).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2080   +/-   ##
=======================================
  Coverage   61.21%   61.21%           
=======================================
  Files         339      340    +1     
  Lines       45132    45143   +11     
=======================================
+ Hits        27627    27636    +9     
- Misses      15985    15987    +2     
  Partials     1520     1520           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

slog.Info("Found v5 provider.. upgrading to v6")

v6, err := tf5to6server.UpgradeServer(ctx, func() tfprotov5.ProviderServer {
return v5shim.New(tfplugin5.NewProviderClient(rpcClient.(*plugin.GRPCClient).Conn))
Copy link
Member

Choose a reason for hiding this comment

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

This is interesting. Indeed looks like protobuf doesn't make this translation easy though it should be entirely mechanical.

Copy link
Member

Choose a reason for hiding this comment

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

I see, this is actually one level up from raw protos. And something like this https://github.com/hashicorp/terraform-plugin-go/blob/v0.23.0/tfprotov5/internal/fromproto/provider.go#L31 is internal unfortunately.

Broken off from #1973 for easier review.
@iwahbe iwahbe force-pushed the iwahbe/dynamic-provider-loader branch from eb21de6 to f801aef Compare June 12, 2024 17:59
@iwahbe iwahbe enabled auto-merge (squash) June 12, 2024 17:59
@iwahbe iwahbe merged commit 82f12b1 into master Jun 12, 2024
11 checks passed
@iwahbe iwahbe deleted the iwahbe/dynamic-provider-loader branch June 12, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants