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/internal/config/config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/k8splugin/internal/config/config.go') diff --git a/src/k8splugin/internal/config/config.go b/src/k8splugin/internal/config/config.go index c3ca9054..dc3f7a11 100644 --- a/src/k8splugin/internal/config/config.go +++ b/src/k8splugin/internal/config/config.go @@ -39,6 +39,7 @@ type Configuration 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 @@ -87,6 +88,7 @@ func defaultConfiguration() *Configuration { EtcdCAFile: "etcd-ca.cert", KubeConfigDir: cwd, OVNCentralAddress: "127.0.0.1", + ServicePort: "9015", } } -- cgit 1.2.3-korg