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)