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

Update provider mock to include GetMapping binding. #2256

Merged
merged 2 commits into from
Dec 11, 2022

Conversation

RobbieMcKinstry
Copy link
Contributor

Proposed changes

Update the provider mock to stub out the GetMapping grpc call.

Related issues (optional)

Downstream codegen tests are failing for pulumi/pulumi#11579 , and this appears to be the culprit.
Related test failure: https://github.com/pulumi/pulumi/actions/runs/3640177109/jobs/6144501716

@RobbieMcKinstry RobbieMcKinstry added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Dec 7, 2022
@@ -205,6 +205,12 @@ func (k *kubeProvider) Call(ctx context.Context, req *pulumirpc.CallRequest) (*p
return nil, status.Error(codes.Unimplemented, "Call is not yet implemented")
}

// GetMapping fetches the mapping for this resource provider, if any. A provider should return an empty
// response (not an error) if it doesn't have a mapping for the given key.
func (k *kubeProvider) GetMapping(ctx context.Context, req *pulumirpc.GetMappingRequest) (*GetMappingResponse, error) {
Copy link
Member

Choose a reason for hiding this comment

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

This looks correct once the pulumi SDK dependency is updated. This currently fails to typecheck because the GetMapping method isn't present in the current version of the SDK.

@justinvp
Copy link
Member

justinvp commented Dec 9, 2022

@RobbieMcKinstry, now that v3.49.0 has been release, do you want to finish up this PR? I think it's a matter of updating:

github.com/pulumi/pulumi/pkg/v3 v3.48.0
github.com/pulumi/pulumi/sdk/v3 v3.48.0

and rebuilding to see if there are any generated SDK changes

@RobbieMcKinstry
Copy link
Contributor Author

@justinvp yes, I'll make those changes, thanks!

@RobbieMcKinstry
Copy link
Contributor Author

...right after I eat this lunch! :D <3

@RobbieMcKinstry
Copy link
Contributor Author

Ok, done. Looks like there's a merge conflict, I'll resolve that.

@RobbieMcKinstry
Copy link
Contributor Author

Cool, that should do it!

@github-actions
Copy link

github-actions bot commented Dec 9, 2022

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@RobbieMcKinstry
Copy link
Contributor Author

Hm, bizarre CI error... transient?

@lblackstone
Copy link
Member

Hm, bizarre CI error... transient?

Haven't seen that one before. Let's rerun.

@github-actions
Copy link

github-actions bot commented Dec 9, 2022

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

1 similar comment
@github-actions
Copy link

github-actions bot commented Dec 9, 2022

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@RobbieMcKinstry RobbieMcKinstry merged commit 6563a7d into master Dec 11, 2022
@RobbieMcKinstry RobbieMcKinstry deleted the mckinstry/update-mocks branch December 11, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants