Skip to content

Commit

Permalink
[k8scluster] support empty/default imagename when adding k8snodegroup
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-github-robot authored Sep 30, 2024
2 parents 932dafe + a561c2e commit cb578d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/resource/k8scluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ func AddK8sNodeGroup(nsId string, k8sClusterId string, u *model.TbK8sNodeGroupRe

spImgName := "" // Some CSPs do not require ImageName for creating a cluster
if u.ImageId == "" || u.ImageId == "default" {
spImgName = ""
} else {
spImgName, err = GetCspResourceName(nsId, model.StrImage, u.ImageId)
if spImgName == "" {
log.Err(err).Msg("Failed to Add K8sNodeGroup")
Expand Down

0 comments on commit cb578d2

Please sign in to comment.