-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Terrarium - Providers]: Implementation of gRPC backend microservice …
…integrated with DynamoDB for Data Persistence (#68) * Implementation of the provider registry protocol v1 (#65) * changes for testing, adding a metadata for windows amd64 plat * removed provider stuff from docker compose that was added for testing * updated terraform.json * worked on review comments * go fmt * removed unused code * added support for v3.6.0 linux amd * worked on review comment suggestions * Web ui & rest microservice for providers * updated pushed changes * go fmt * updatedone of the params of provider list item * worked on review comments * version-manager-service * go fmt * update in gen proto script * correction "updating previously existing sourceUrl to sourceRepoUrl as we have a sourceUrl as providerMetadata" * pushing test changes here, not the final one, this branch will be deleted here, as the main branch is ciedev-3252 * update in version_manager * adding unit tests * removed providers.json * created startGRPCService for providers * modified schema & updated services according to it, removed abort provider function, and updated provider structure * go fmt * updated unit tests based on updated schema, and fixed repeated list of providers in UI issue. * optimised the query to DB for list providers & get provider to improve time complexity. * go fmt * fix * Update cmd/allInOne.go Co-authored-by: Adam Charrett <[email protected]> * Update cmd/allInOne.go Co-authored-by: Adam Charrett <[email protected]> * Update cmd/gateway_provider.go Co-authored-by: Adam Charrett <[email protected]> * introduced a new package for service and common gateway for both modules & providers, small fix in ui(source_repo_url fix), addition of span attributes, renaming of moduleServices, update in docker compose, browse cmd, allInOne, root cmds, added test functions for providers in gateway, worked for review comments * go fmt * updated grpc service naming convention from camel case to snake case * added missing opentelemetry span --------- Co-authored-by: Anjani <[email protected]> Co-authored-by: Anjani Kumar Srivastava <[email protected]> Co-authored-by: Adam Charrett <[email protected]>
- Loading branch information
1 parent
a83d847
commit d8616d2
Showing
45 changed files
with
4,692 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/terrariumcloud/terrarium/internal/provider/services/version_manager" | ||
"github.com/terrariumcloud/terrarium/internal/storage" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
var providerVersionManagerServiceCmd = &cobra.Command{ | ||
Use: "provider-version-manager", | ||
Short: "Starts the Terrarium GRPC Provider Version Manager service", | ||
Long: "Runs the Terrarium GRPC Provider Version Manager server.", | ||
Run: runProviderVersionManagerService, | ||
} | ||
|
||
func init() { | ||
rootCmd.AddCommand(providerVersionManagerServiceCmd) | ||
providerVersionManagerServiceCmd.Flags().StringVarP(&version_manager.VersionsTableName, "table", "t", version_manager.DefaultProviderVersionsTableName, "Provider Version Manager table name") | ||
} | ||
|
||
func runProviderVersionManagerService(cmd *cobra.Command, args []string) { | ||
|
||
versionManagerServiceServer := &version_manager.VersionManagerService{ | ||
Db: storage.NewDynamoDbClient(awsSessionConfig), | ||
Table: version_manager.VersionsTableName, | ||
Schema: version_manager.GetProviderVersionsSchema(version_manager.VersionsTableName), | ||
} | ||
|
||
startGRPCService("provider-version-manager", versionManagerServiceServer) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.