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 <kiran.k.kamineni@intel.com>
 ENV https_proxy $HTTPS_PROXY
 ENV no_proxy $NO_PROXY
 
-EXPOSE 8081
+EXPOSE 9015
 
 RUN groupadd -r onap && useradd -r -g onap onap
 RUN apt-get update && apt-get install -y -qq apt-transport-https curl \
 
     "database-address":     "$DATABASE_IP",
     "database-type": "mongo",
     "plugin-dir": "$(pwd)/plugins",
+    "service-port": "9015",
     "kube-config-dir": "$(pwd)/kubeconfigs"
 }
 EOF
 
        "k8splugin/api"
        utils "k8splugin/internal"
        "k8splugin/internal/auth"
+       "k8splugin/internal/config"
 
        "github.com/gorilla/handlers"
 )
 
        httpServer := &http.Server{
                Handler: loggedRouter,
-               Addr:    ":8081", // Remove hardcoded port number
+               Addr:    ":" + config.GetConfiguration().ServicePort,
        }
 
        connectionsClose := make(chan struct{})
 
        EtcdCAFile        string `json:"etcd-ca-file"`
        KubeConfigDir     string `json:"kube-config-dir"`
        OVNCentralAddress string `json:"ovn-central-address"`
+       ServicePort       string `json:"service-port"`
 }
 
 // Config is the structure that stores the configuration
                EtcdCAFile:        "etcd-ca.cert",
                KubeConfigDir:     cwd,
                OVNCentralAddress: "127.0.0.1",
+               ServicePort:       "9015",
        }
 }