Skip to content

Conversation

@igor-karpukhin
Copy link
Collaborator

All Submissions:

Added an ability to upgrade shared clusters. Closes: CLOUDP-118355

  • Have you signed our CLA?
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if there is one).


switch atlasCluster.StateName {
case "IDLE":

Copy link
Contributor

Choose a reason for hiding this comment

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

This empty line seems strange, not critical thought =)

Copy link
Contributor

@fabritsius fabritsius left a comment

Choose a reason for hiding this comment

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

Looks great 👍

}

func clusterShouldBeUpgraded(current *mongodbatlas.Cluster, new *mongodbatlas.Cluster) bool {
if isSharedCluster(current.ProviderSettings.InstanceSizeName) && !isSharedCluster(new.ProviderSettings.InstanceSizeName) {
Copy link
Contributor

@fabritsius fabritsius May 19, 2022

Choose a reason for hiding this comment

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

You can just return this expression 😅

@igor-karpukhin igor-karpukhin merged commit 6883723 into main May 19, 2022
@igor-karpukhin igor-karpukhin deleted the CLOUDP-118355/shared-cluster-upgrade branch May 19, 2022 14:57
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