Use the passed namespace while installing chart 34/9934/1
authorsubhash kumar singh <subh.singh@samsung.com>
Sat, 3 Dec 2022 18:36:58 +0000 (18:36 +0000)
committersubhash kumar singh <subh.singh@samsung.com>
Sat, 3 Dec 2022 18:36:58 +0000 (18:36 +0000)
Removed the hardcoded namespace and used the namespace from
API input.

Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: I429adb8d9772c7929be3a0fe8a4adbcef265df61

pkg/deploy/deployment_manager.go

index fdc2259..0bd0461 100644 (file)
@@ -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)