diff options
author | Ritu Sood <ritu.sood@intel.com> | 2020-02-07 18:36:54 -0800 |
---|---|---|
committer | Marcus Williams <marcus.williams@intel.com> | 2020-02-14 21:57:46 +0000 |
commit | c3e1c9a5fefde3fcb6aaf05c19b18f211c1a43ba (patch) | |
tree | 52de09121293ad1fec9c0be1d1f24439f9b73fc0 /src/orchestrator/cmd/main.go | |
parent | a75d489bbf87712371d67dce0753577bdacce0c3 (diff) |
Add etcd support in infrastructure layer
Create a etcd client and provide minimal
functionality needed by the orchestrator
for using etcd
Issue-ID: MULTICLOUD-871
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: I56fb4643addf43cdc59366e7163b66bb1618876d
Diffstat (limited to 'src/orchestrator/cmd/main.go')
-rw-r--r-- | src/orchestrator/cmd/main.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/orchestrator/cmd/main.go b/src/orchestrator/cmd/main.go index fb8f26d6..f46fe910 100644 --- a/src/orchestrator/cmd/main.go +++ b/src/orchestrator/cmd/main.go @@ -26,7 +26,7 @@ import ( "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" ) @@ -40,6 +40,12 @@ func main() { log.Println(err) log.Fatalln("Exiting...") } + err = contextDb.InitializeContextDatabase() + if err != nil { + log.Println("Unable to initialize database connection...") + log.Println(err) + log.Fatalln("Exiting...") + } httpRouter := api.NewRouter(nil) loggedRouter := handlers.LoggingHandler(os.Stdout, httpRouter) |