From 3e59b4002c0617001793d964f4f30df4f99f6bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Ramon=20Ma=C3=B1es?= <32740567+jrmanes@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:44:35 +0200 Subject: [PATCH] fix(namespaces): use SanitizeName to use the right format for the namespaces (#276) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jose Ramon MaƱes --- pkg/knuu/knuu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/knuu/knuu.go b/pkg/knuu/knuu.go index 7165375..4b0a6e2 100644 --- a/pkg/knuu/knuu.go +++ b/pkg/knuu/knuu.go @@ -69,7 +69,7 @@ func InitializeWithScope(scope string) error { return fmt.Errorf("cannot initialize k8s: %s", err) } - namespace := scope + namespace := k8s.SanitizeName(scope) namespaceExists := k8s.NamespaceExists(namespace) if !namespaceExists {