Skip to content

Commit

Permalink
word
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming committed Nov 21, 2023
1 parent ecc4662 commit 659172b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions orch/internal/handlers/hc_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,9 @@ func CreateHubsCloudInstance(hcCfg HCcfg) error {
nsList, _ := internal.Cfg.K8ss_local.ClientSet.CoreV1().Namespaces().List(context.Background(),
metav1.ListOptions{LabelSelector: "hub_id=" + hcCfg.HubId})
if len(nsList.Items) != 0 {
internal.Logger.Error("hub_id already exists: " + hcCfg.HubId)
return fmt.Errorf("bounce -- hub_id already exists")
internal.Logger.Warn("hub_id already exists: " + hcCfg.HubId)
// return fmt.Errorf("bounce -- hub_id already exists")
return nil
}

// #2 render turkey-k8s-chart by apply cfg to hc.yam
Expand Down

0 comments on commit 659172b

Please sign in to comment.