diff --git a/pkg/action/install.go b/pkg/action/install.go index 4de0b64e6..0d4b7446e 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -292,7 +292,8 @@ func (i *Install) Run(chrt *chart.Chart, vals map[string]interface{}) (*release. ObjectMeta: metav1.ObjectMeta{ Name: i.Namespace, Labels: map[string]string{ - "name": i.Namespace, + "name": i.Namespace, + appManagedByLabel: appManagedByHelm, }, }, } diff --git a/pkg/action/install_test.go b/pkg/action/install_test.go index 2237e1de6..c95b89036 100644 --- a/pkg/action/install_test.go +++ b/pkg/action/install_test.go @@ -48,6 +48,7 @@ func installAction(t *testing.T) *Install { instAction := NewInstall(config) instAction.Namespace = "spaced" instAction.ReleaseName = "test-install-release" + instAction.CreateNamespace = true return instAction }