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

Migrate LKE and MySQL Client Functions to Utilize Request Helpers #540

Merged

Conversation

ezilber-akamai
Copy link
Contributor

@ezilber-akamai ezilber-akamai commented Jul 3, 2024

📝 Description

Migrate LKE and MySQL Client Functions to Utilize Request Helpers

@ezilber-akamai ezilber-akamai requested a review from a team as a code owner July 3, 2024 19:33
@ezilber-akamai ezilber-akamai requested review from lgarber-akamai and zliang-akamai and removed request for a team July 3, 2024 19:33
@ezilber-akamai ezilber-akamai force-pushed the TPT-2875-lke_cluster_pools-mysql branch from b335d2d to 22ab268 Compare July 3, 2024 19:59
updatedK8sVersion := "1.23"
isHA := true
updatedK8sVersion := "1.30"
isHA := false
Copy link
Contributor

@lgarber-akamai lgarber-akamai Jul 5, 2024

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.

Comment on lines 197 to +201
if err != nil {
return nil, err
}
return r.Result().(*LKECluster), nil

return response, nil
Copy link
Contributor

@lgarber-akamai lgarber-akamai Jul 5, 2024

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 👍

Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, excellent work!

lke_clusters.go Outdated Show resolved Hide resolved
@zliang-akamai
Copy link
Member

This seems much more than lke_cluster_pools and mysql, maybe considering update the title and description to something like: Migrate LKE and MySQL Client Functions to Utilize Request Helpers?

Copy link
Member

@zliang-akamai zliang-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks great!

@ezilber-akamai ezilber-akamai changed the title Migrated lke_cluster_pools to mysql to request helpers Migrate LKE and MySQL Client Functions to Utilize Request Helpers Jul 10, 2024
Copy link
Member

@zliang-akamai zliang-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ezilber-akamai ezilber-akamai merged commit ea893ef into linode:main Jul 10, 2024
4 checks passed
@ezilber-akamai ezilber-akamai deleted the TPT-2875-lke_cluster_pools-mysql branch July 10, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants