Skip to content

Commit

Permalink
feat: namespace creation (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 authored Mar 12, 2024
1 parent a62ac45 commit 6a02fc9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a02fc9

Please sign in to comment.