From d3b574cd4cbc6fc4340bf8bde2923b76c94db961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20R=C3=BCegg?= Date: Sat, 27 Feb 2021 11:10:00 +0100 Subject: [PATCH] Label created namespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simon Rüegg --- pkg/action/install.go | 3 ++- pkg/action/install_test.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 }