-
Notifications
You must be signed in to change notification settings - Fork 95
CLOUDP-336001: Remove legacy atlas client #2579
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
Conversation
652a929
to
d3710d9
Compare
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 in general. One question regarding the DeepCopy
return reflect.DeepEqual(currentCopy, newCopy), nil | ||
} | ||
|
||
func deepCopy[T any](src *T) (*T, error) { |
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.
Isn't there a DeepCopy()
method generated by the kubebuilder?
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.
It's not copying Kube struct by copying sdk structs, that's why I added it.
@@ -170,7 +169,7 @@ func (ds *ProductionAtlasDeployments) DeploymentIsReady(ctx context.Context, pro | |||
if err != nil { | |||
return false, fmt.Errorf("failed to get cluster %q status %w", deploymentName, err) | |||
} | |||
return clusterStatus.GetChangeStatus() == string(mongodbatlas.ChangeStatusApplied), nil | |||
return clusterStatus.GetChangeStatus() == "APPLIED", 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.
nit: magic value. Better to move to a const
Summary
Proof of Work
Checklist
Reminder (Please remove this when merging)