-
Notifications
You must be signed in to change notification settings - Fork 42
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
Conversation
e647f7b
to
eb21de6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
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)) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
eb21de6
to
f801aef
Compare
Broken off from #1973 for easier review.
Fixes https://github.com/pulumi/home/issues/3409