Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Switch to shared gRPC server implementation #182

Merged
merged 2 commits into from
Apr 21, 2022

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Apr 19, 2022

Description of your changes

Fixes crossplane/terrajet#261

Switches to the shared gRPC server implementation in provider-jet-aws.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Tested using the corresponding Terrajet PR crossplane/terrajet#275 by provisioning and destroying a VPC both locally and in-cluster with a provider package.

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Copy link
Member

@muvaf muvaf left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @ulucinar !

@@ -86,6 +87,11 @@ func main() {
kingpin.FatalIfError(err, "Cannot create controller manager")
kingpin.FatalIfError(apis.AddToScheme(mgr.GetScheme()), "Cannot add AWS APIs to scheme")

var runner terraform.ProviderRunner = terraform.NewNoOpProviderRunner()
if len(*nativeProviderPath) != 0 {
Copy link
Member

Choose a reason for hiding this comment

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

A comment explaining that this is to enhance local development experience would be helpful.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @muvaf. Added a comment explaining the motivation behind the new command-line flag --terraform-native-provider-path.

…e-provider-path`

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Terrajet-based providers to run in shared gRPC mode
2 participants