From be7de1c376347b3f97d24aab85270ced0c039a58 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Wed, 29 Jan 2020 22:56:19 -0500 Subject: [PATCH] fix(cmd): Specify namespace for template command The template command uses the memory driver. This driver now supports namespaces, so the template code-path now specifies the namespace as required by the memory driver. Signed-off-by: Marc Khouzam --- pkg/action/install.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/action/install.go b/pkg/action/install.go index 78021dc8c..55a44aaed 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -187,7 +187,10 @@ func (i *Install) Run(chrt *chart.Chart, vals map[string]interface{}) (*release. i.cfg.Capabilities = chartutil.DefaultCapabilities i.cfg.Capabilities.APIVersions = append(i.cfg.Capabilities.APIVersions, i.APIVersions...) i.cfg.KubeClient = &kubefake.PrintingKubeClient{Out: ioutil.Discard} - i.cfg.Releases = storage.Init(driver.NewMemory()) + + mem := driver.NewMemory() + mem.SetNamespace(i.Namespace) + i.cfg.Releases = storage.Init(mem) } else if !i.ClientOnly && len(i.APIVersions) > 0 { i.cfg.Log("API Version list given outside of client only mode, this list will be ignored") }