From 381e61199653bbfa7da9c5349acad87a944fc8b8 Mon Sep 17 00:00:00 2001 From: Kiran Kamineni Date: Mon, 6 May 2019 11:22:46 -0700 Subject: Make service port configurable Service port should be configurable. This patch removes the hardcoded value. The default value is 9015 Issue-ID: MULTICLOUD-609 Change-Id: Iae05f42bd06ecd061ec68a3a7c4a4a87f33b22fa Signed-off-by: Kiran Kamineni --- src/k8splugin/cmd/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/k8splugin/cmd') diff --git a/src/k8splugin/cmd/main.go b/src/k8splugin/cmd/main.go index 607e3fe1..d6d9d75a 100644 --- a/src/k8splugin/cmd/main.go +++ b/src/k8splugin/cmd/main.go @@ -25,6 +25,7 @@ import ( "k8splugin/api" utils "k8splugin/internal" "k8splugin/internal/auth" + "k8splugin/internal/config" "github.com/gorilla/handlers" ) @@ -44,7 +45,7 @@ func main() { httpServer := &http.Server{ Handler: loggedRouter, - Addr: ":8081", // Remove hardcoded port number + Addr: ":" + config.GetConfiguration().ServicePort, } connectionsClose := make(chan struct{}) -- cgit 1.2.3-korg