Use the passed namespace while installing chart
Removed the hardcoded namespace and used the namespace from
API input.
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
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 (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)