Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
robertchoi80 committed Aug 11, 2023
1 parent b324aee commit a7b897c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/usecase/app-serve-app.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ func (u *AppServeAppUsecase) IsAppServeAppNamespaceExist(clusterId string, new_n
}

namespaces, err := clientset.CoreV1().Namespaces().List(context.TODO(), metav1.ListOptions{})
if err != nil {
log.Error(err)
return false, err
}
for _, ns := range namespaces.Items {
if new_ns == ns.ObjectMeta.Name {
log.Debugf("Namespace %s already exists.", new_ns)
Expand Down

0 comments on commit a7b897c

Please sign in to comment.