Skip to content

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

Merged
merged 1 commit into from
Aug 12, 2025

Conversation

helderjs
Copy link
Collaborator

Summary

Proof of Work

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you checked for release_note changes?
  • Have you signed our CLA?

Reminder (Please remove this when merging)

  • Please try to Approve or Reject Changes the PR, keep PRs in review as short as possible
  • Remember the following Communication Standards - use comment prefixes for clarity:
    • blocking: Must be addressed before approval.
    • follow-up: Can be addressed in a later PR or ticket.
    • q: Clarifying question.
    • nit: Non-blocking suggestions.
    • note: Side-note, non-actionable. Example: Praise
    • --> no prefix is considered a question

@helderjs helderjs requested a review from a team as a code owner August 11, 2025 11:16
@helderjs helderjs force-pushed the CLOUDP-336001-remove-legacy-atlas-client branch from 652a929 to d3710d9 Compare August 11, 2025 11:35
Copy link
Collaborator

@igor-karpukhin igor-karpukhin left a 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) {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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
Copy link
Collaborator

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

@helderjs helderjs merged commit 6f175bb into main Aug 12, 2025
195 of 198 checks passed
@helderjs helderjs deleted the CLOUDP-336001-remove-legacy-atlas-client branch August 12, 2025 09:50
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.

4 participants