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

Second phase of convert mapper #654

Merged
merged 1 commit into from Nov 30, 2022
Merged

Second phase of convert mapper #654

merged 1 commit into from Nov 30, 2022

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Nov 29, 2022

No description provided.

@github-actions
Copy link

Diff for pulumi-azuread with merge commit 117632a

@github-actions
Copy link

Diff for pulumi-random with merge commit 117632a

@github-actions
Copy link

Diff for pulumi-gcp with merge commit 117632a

@github-actions
Copy link

Diff for pulumi-azure with merge commit 117632a

@github-actions
Copy link

Diff for pulumi-aws with merge commit 117632a

@github-actions
Copy link

Diff for pulumi-random with merge commit 044afd9

@github-actions
Copy link

Diff for pulumi-azuread with merge commit 044afd9

@github-actions
Copy link

Diff for pulumi-gcp with merge commit 044afd9

@github-actions
Copy link

Diff for pulumi-azure with merge commit 044afd9

@github-actions
Copy link

Diff for pulumi-azuread with merge commit 939598b

@github-actions
Copy link

Diff for pulumi-random with merge commit 939598b

@github-actions
Copy link

Diff for pulumi-gcp with merge commit 939598b

@github-actions
Copy link

Diff for pulumi-aws with merge commit 044afd9

@github-actions
Copy link

Diff for pulumi-azure with merge commit 939598b

@github-actions
Copy link

Diff for pulumi-aws with merge commit 939598b

@Frassle
Copy link
Member Author

Frassle commented Nov 29, 2022

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)
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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!

@Frassle Frassle added blocked and removed blocked labels Nov 29, 2022
@github-actions
Copy link

Diff for pulumi-random with merge commit 1019e19

@github-actions
Copy link

Diff for pulumi-azuread with merge commit 1019e19

@github-actions
Copy link

Diff for pulumi-gcp with merge commit 1019e19

@github-actions
Copy link

Diff for pulumi-azure with merge commit 1019e19

@github-actions
Copy link

Diff for pulumi-aws with merge commit 1019e19

Copy link
Member

@iwahbe iwahbe left a 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.

@Frassle Frassle merged commit 52ef9a8 into master Nov 30, 2022
@Frassle Frassle deleted the fraser/convertMapper branch November 30, 2022 18:55
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

3 participants