Skip to content

Commit

Permalink
Allow 'default' image id for k8scluster
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-github-robot authored Jun 14, 2024
2 parents 8e7db7b + 75f8b25 commit 59fc964
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/mcis/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,9 @@ func CreateCluster(nsId string, u *TbClusterReq, option string) (TbClusterInfo,
}

spImgName := "" // Some CSPs do not require ImageName for creating a cluster
if v.ImageId != "" {
if v.ImageId == "" || v.ImageId == "default" {
spImgName = ""
} else {
spImgName, err = common.GetCspResourceId(nsId, common.StrImage, v.ImageId)
if spImgName == "" {
log.Error().Err(err).Msg("")
Expand Down

0 comments on commit 59fc964

Please sign in to comment.