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
Second phase of convert mapper #654
Conversation
Diff for pulumi-azuread with merge commit 117632a |
Diff for pulumi-random with merge commit 117632a |
2907c0a
to
bfbf29f
Compare
Diff for pulumi-gcp with merge commit 117632a |
Diff for pulumi-azure with merge commit 117632a |
Diff for pulumi-aws with merge commit 117632a |
bfbf29f
to
4e00ee8
Compare
Diff for pulumi-random with merge commit 044afd9 |
Diff for pulumi-azuread with merge commit 044afd9 |
Diff for pulumi-gcp with merge commit 044afd9 |
4e00ee8
to
862f9d1
Compare
Diff for pulumi-azure with merge commit 044afd9 |
Diff for pulumi-azuread with merge commit 939598b |
Diff for pulumi-random with merge commit 939598b |
Diff for pulumi-gcp with merge commit 939598b |
Diff for pulumi-aws with merge commit 044afd9 |
Diff for pulumi-azure with merge commit 939598b |
Diff for pulumi-aws with merge commit 939598b |
Blocked on pulumi/pulumi#11452 |
@@ -53,6 +54,15 @@ func (p *inmemoryProvider) GetSchema(version int) ([]byte, error) { | |||
return p.schema, nil | |||
} | |||
|
|||
func (p *inmemoryProvider) GetMapping(key string) ([]byte, string, error) { | |||
info := tfbridge.MarshalProviderInfo(&p.info) |
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.
Whoah. Is all of this needed🙏
This is a large-ish export, I need to get a bit more of a handle on all the things here to be comfortable, as presumably this now also becomes an obligation for PF-built providers to hit the same contract.
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 not new, this is the data structure that tf2pulumi already expects for bridged providers to export for conversions. It's just currently it access it via running the plugin with the "-get-provider-info" flag (see https://github.com/pulumi/pulumi-terraform-bridge/blob/master/pkg/tfbridge/main.go#L55-L60)
This is just moving that interface to be a well known engine interface so that the engine can do the plugin lookup and loading, rather than tf2pulumi having to do it.
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.
Ah, gotcha so tf2pulumi consumes it. This is my miss then, I need to target supporting this from tfpf branch as well!
862f9d1
to
2c2f8ae
Compare
Diff for pulumi-random with merge commit 1019e19 |
Diff for pulumi-azuread with merge commit 1019e19 |
Diff for pulumi-gcp with merge commit 1019e19 |
Diff for pulumi-azure with merge commit 1019e19 |
Diff for pulumi-aws with merge commit 1019e19 |
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'm not familiar with the underlying p.info
, but this looks like the expected continuation of the original PR.
No description provided.