Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[k8scluster] support empty/default imagename when adding k8snodegroup #1841

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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