From: subhash kumar singh Date: Sat, 3 Dec 2022 18:36:58 +0000 (+0000) Subject: Use the passed namespace while installing chart X-Git-Tag: 2.0.0~1 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F9934%2F1;p=ric-plt%2Fricdms.git Use the passed namespace while installing chart Removed the hardcoded namespace and used the namespace from API input. Signed-off-by: subhash kumar singh Change-Id: I429adb8d9772c7929be3a0fe8a4adbcef265df61 --- diff --git a/pkg/deploy/deployment_manager.go b/pkg/deploy/deployment_manager.go index fdc2259..0bd0461 100644 --- a/pkg/deploy/deployment_manager.go +++ b/pkg/deploy/deployment_manager.go @@ -50,7 +50,7 @@ func NewDeploymentManager() IDeploy { func (d *DeploymentManager) install(chartPath, appName, version, namesapce string) error { conf := action.Configuration{} - err := conf.Init(d.settings.RESTClientGetter(), "namespace", os.Getenv(HELM_DRIVER), ricdms.Logger.Debug) + err := conf.Init(d.settings.RESTClientGetter(), namesapce, os.Getenv(HELM_DRIVER), ricdms.Logger.Debug) if err != nil { ricdms.Logger.Error("not able to prepare install configuration: %v", err)