diff options
author | 2020-02-14 13:29:37 -0800 | |
---|---|---|
committer | 2020-02-21 10:00:07 -0800 | |
commit | 95e9ddd082cb2ccd28d9d33ea2f8607bd5c793f5 (patch) | |
tree | 3649bfda50603ad04af857440cb1653371e6dc7b /src/orchestrator/cmd/main.go | |
parent | bea5027a7f59bffee2a6ed931e63c05a9fb1bdc7 (diff) |
Add Controller Register API to Orchestrator
Add API allows Controllers to register
themselves as gRPC servers consumed by
the orchestrator.
Issue-ID: MULTICLOUD-995
Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
Change-Id: I75946a4af711bf2e9d65f354923db494da667e70
Diffstat (limited to 'src/orchestrator/cmd/main.go')
-rw-r--r-- | src/orchestrator/cmd/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/orchestrator/cmd/main.go b/src/orchestrator/cmd/main.go index 087caba3..a6c72ae3 100644 --- a/src/orchestrator/cmd/main.go +++ b/src/orchestrator/cmd/main.go @@ -22,12 +22,12 @@ import ( "os/signal" "time" + "github.com/gorilla/handlers" "github.com/onap/multicloud-k8s/src/orchestrator/api" "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/auth" "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/config" - "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/db" contextDb "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/contextdb" - "github.com/gorilla/handlers" + "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/db" ) func main() { @@ -40,14 +40,14 @@ func main() { log.Println(err) log.Fatalln("Exiting...") } - err = contextDb.InitializeContextDatabase() + err = contextDb.InitializeContextDatabase() if err != nil { log.Println("Unable to initialize database connection...") log.Println(err) log.Fatalln("Exiting...") } - httpRouter := api.NewRouter(nil, nil) + httpRouter := api.NewRouter(nil, nil, nil) loggedRouter := handlers.LoggingHandler(os.Stdout, httpRouter) log.Println("Starting Kubernetes Multicloud API") |