vesmgr namespace changes
Change-Id: I0b20d07480d0b51fe2226c5704253cbddf9f4c8c
Signed-off-by: rangajal <ranjit.angajala@nokia.com>
diff --git a/cmd/vesmgr/vesmgr.go b/cmd/vesmgr/vesmgr.go
index c093359..4906d28 100755
--- a/cmd/vesmgr/vesmgr.go
+++ b/cmd/vesmgr/vesmgr.go
@@ -28,6 +28,7 @@
"net/http"
"os"
"time"
+ "fmt"
mdcloggo "gerrit.o-ran-sc.org/r/com/golog.git"
)
@@ -125,7 +126,11 @@
if ok {
logger.Info("Using appmgrdomain %s", appmgrDomain)
} else {
- appmgrDomain = "service-ricplt-appmgr-http.ricplt.svc.cluster.local"
+ pltnamespace := os.Getenv("PLT_NAMESPACE")
+ if pltnamespace == "" {
+ pltnamespace = "ricplt"
+ }
+ appmgrDomain = fmt.Sprintf("service-%s-appmgr-http.%s.svc.cluster.local",pltnamespace, pltnamespace)
logger.Info("Using default appmgrdomain %s", appmgrDomain)
}
vesmgr.chXAppSubscriptions = make(chan subscriptionNotification)