-
Notifications
You must be signed in to change notification settings - Fork 24
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
Joshd/sc 88868/reject requests for vm clusters with 1 nodes #326
Joshd/sc 88868/reject requests for vm clusters with 1 nodes #326
Conversation
cli/cmd/cluster_create.go
Outdated
This is a beta feature, with some known limitations: | ||
- K3s, Kind, kurl, helmvm and Openshift clusters only support a single node. | ||
- EKS clusters may report ready before the nodes are completely online. | ||
- kurl is the only supported distribution that can be upgraded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line should be a limitation of the cluster upgrade command, not cluster create
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a fair warning here so it's not a surprise later. Maybe wording can be improved.
pkg/kotsclient/cluster_upgrade.go
Outdated
return nil, ve, nil | ||
// if err is APIError and the status code is 400, then we have a validation error | ||
// and we can return the validation error | ||
if apiErr, ok := err.(platformclient.APIError); ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errors.Cause(err).(platformclient.APIError)
cli/cmd/cluster_create.go
Outdated
} | ||
return nil, fmt.Errorf("%s", errors.New(strings.Join(ve.Errors, ","))) | ||
return nil, fmt.Errorf("%s", ve.Message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errors.New(ve.Message)
Next to doing a validation on number of nodes, it also fixes some other issues.
https://www.loom.com/share/cd576538ffa44be8a538f11c46d8b9df?sid=0839438f-8349-4a9e-8b92-cd92b5932f3a