-
Notifications
You must be signed in to change notification settings - Fork 82
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
Migrate LKE and MySQL Client Functions to Utilize Request Helpers #540
Migrate LKE and MySQL Client Functions to Utilize Request Helpers #540
Conversation
b335d2d
to
22ab268
Compare
updatedK8sVersion := "1.23" | ||
isHA := true | ||
updatedK8sVersion := "1.30" | ||
isHA := false |
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.
Note for other reviewers:
As of now HA cannot be specified in the same PUT request as a K8s version upgrade, which caused issues here because we can't guarantee there will be multiple LKE versions available at any given time.
if err != nil { | ||
return nil, err | ||
} | ||
return r.Result().(*LKECluster), nil | ||
|
||
return response, nil |
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.
optional: This logic can be simplified down to return response, err
👍
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.
LGTM, excellent work!
This seems much more than lke_cluster_pools and mysql, maybe considering update the title and description to something like: |
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.
Overall looks great!
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.
LGTM!
📝 Description
Migrate LKE and MySQL Client Functions to Utilize Request Helpers