Skip to content

Commit

Permalink
Merge pull request #1826 from sykim-etri/develop
Browse files Browse the repository at this point in the history
[k8scluster] fix nodegroup's name
  • Loading branch information
seokho-son authored Sep 25, 2024
2 parents d282f30 + d4e1784 commit 0b76346
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/resource/k8scluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ func CreateK8sCluster(nsId string, req *model.TbK8sClusterReq, option string) (m

var spNodeGroupList []model.SpiderNodeGroupReqInfo
for _, v := range req.K8sNodeGroupList {
err := common.CheckString(v.Name)
spName := v.Name
err := common.CheckString(spName)
if err != nil {
log.Err(err).Msg("Failed to Create a K8sCluster")
return emptyObj, err
Expand Down Expand Up @@ -192,7 +193,7 @@ func CreateK8sCluster(nsId string, req *model.TbK8sClusterReq, option string) (m
}

spNodeGroupList = append(spNodeGroupList, model.SpiderNodeGroupReqInfo{
Name: common.GenUid(),
Name: spName,
ImageName: spImgName,
VMSpecName: spSpecName,
RootDiskType: v.RootDiskType,
Expand Down

0 comments on commit 0b76346

Please sign in to comment.