Skip to content

Commit

Permalink
Merge pull request #515 from openinfradev/minor_fix
Browse files Browse the repository at this point in the history
trivial. fix cluster site-value bug
  • Loading branch information
ktkfree authored May 28, 2024
2 parents 2c5f316 + 02d6391 commit 058ace3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/usecase/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 058ace3

Please sign in to comment.