-
Notifications
You must be signed in to change notification settings - Fork 151
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
WIP: expose PF-based resources #2464
Conversation
primary, err := provider.New(ctx) | ||
if err != nil { | ||
panic(err) | ||
return UpstreamProvider{}, err | ||
} | ||
return prov | ||
pf := fwprovider.New(primary) | ||
return UpstreamProvider{ | ||
SDKV2Provider: primary, | ||
PluginFrameworkProvider: pf, | ||
}, nil |
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.
@t0yv0 I think the reason we are seeing behavior from the SDK side effect the PF side is because we are passing back the same provider (with its backing state).
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.
We have to do it. If we don't do it PF side is unable to deploy resources.
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.
Specifically it panics with malconfigured AWS client, which only gets configured in sdkv2-style callback. I can dig this up if it doesn't ring a bell.
Noticing weird SetAutoNaming interaction with @iwahbe - new resources based on PF do not yet support auto naming a runtime until pulumi/pulumi-terraform-bridge#917 is done but as written the schema-time SetAutonaming call works and makes their required "name" properties optional. The warning is elided due to incorrect check. Could move resource definitions around so that SetAutoNaming does not apply to them. Wondering if this is a blocker for releasing an update, can we release with a required "name" property and then relax to optional for the new resources? |
Does the PR have any schema changes?Looking good! No breaking changes found. New resources:
New functions:
|
Does the PR have any schema changes?Looking good! No breaking changes found. New resources:
New functions:
|
Does the PR have any schema changes?Looking good! No breaking changes found. New resources:
New functions:
|
Does the PR have any schema changes?Looking good! No breaking changes found. New resources:
New functions:
|
Does the PR have any schema changes?Looking good! No breaking changes found. New resources:
New functions:
|
Does the PR have any schema changes?Looking good! No breaking changes found. New resources:
New functions:
|
Does the PR have any schema changes?Looking good! No breaking changes found. New resources:
New functions:
|
Is this PR still relevant? |
I believe it was rendered unnecessary by #2557. |
No description provided.