From a408944a4fba8120077b2c53bdc686f0051ee7b4 Mon Sep 17 00:00:00 2001 From: Oksana Grishchenko <91597950+oksana-grishchenko@users.noreply.github.com> Date: Thu, 15 Feb 2024 12:28:27 +0200 Subject: [PATCH] EVEREST-855 fix namespaces validation (#298) (cherry picked from commit 28304c2e5aff8f67c54b3c27365f856ecab318a7) --- pkg/install/install.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/install/install.go b/pkg/install/install.go index b5653a2a..7c868f1c 100644 --- a/pkg/install/install.go +++ b/pkg/install/install.go @@ -111,6 +111,9 @@ type ( // NamespacesList returns list of the namespaces that everest can operate in. func (c Config) NamespacesList() []string { + if len(c.Namespaces) == 0 { + return []string{} + } return strings.Split(c.Namespaces, ",") }