From 6a02fc920ae3d63271fe5dfe0b4a6a0b7421640f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristhian=20Fern=C3=A1ndez?= Date: Tue, 12 Mar 2024 18:07:39 -0500 Subject: [PATCH] feat: namespace creation (#313) --- internal/controller/controller.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/internal/controller/controller.go b/internal/controller/controller.go index 19a92661..069e1371 100644 --- a/internal/controller/controller.go +++ b/internal/controller/controller.go @@ -343,9 +343,12 @@ func (clctrl *ClusterController) InitController(def *pkgtypes.ClusterDefinition) } if !recordExists { - err = utils.CreateKubefirstNamespace(clctrl.KubernetesClient) - if err != nil { - return err + + if env.K1LocalDebug == "true" { + err = utils.CreateKubefirstNamespace(clctrl.KubernetesClient) + if err != nil { + return err + } } err = secrets.InsertCluster(clctrl.KubernetesClient, clctrl.Cluster)