diff --git a/internal/usecase/cluster.go b/internal/usecase/cluster.go index 3d64f4d8..eb795c40 100644 --- a/internal/usecase/cluster.go +++ b/internal/usecase/cluster.go @@ -5,11 +5,12 @@ import ( "encoding/base64" "encoding/json" "fmt" - "github.com/Nerzal/gocloak/v13" - "github.com/openinfradev/tks-api/internal/keycloak" "strings" "time" + "github.com/Nerzal/gocloak/v13" + "github.com/openinfradev/tks-api/internal/keycloak" + "github.com/google/uuid" "github.com/openinfradev/tks-api/internal/helper" "github.com/openinfradev/tks-api/internal/middleware/auth/request" @@ -520,10 +521,6 @@ func (u *ClusterUsecase) GetClusterSiteValues(ctx context.Context, clusterId dom out.TksUserNodeMax = cluster.TksUserNodeMax / domain.MAX_AZ_NUM } - if err := serializer.Map(ctx, cluster, &out); err != nil { - log.Error(ctx, err) - } - /* // 기능 변경 : 20230614 : machine deployment 사용하지 않음. 단, aws-standard 는 사용할 여지가 있으므로 주석처리해둔다. const MAX_AZ_NUM = 4