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

Update to latest SDK in the Cloud 2.0 branch #234

Merged
merged 9 commits into from
Sep 13, 2024

Conversation

fantapop
Copy link
Collaborator

@andy-kimball I've rebuilt the cloud 2.0 branch with the latest sdk branch that I also tagged you on. Let me know if these look reasonable and I'll force push them over the existing cloud 2.0 branches.

Copy link
Contributor

@andy-kimball andy-kimball left a comment

Choose a reason for hiding this comment

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

LGTM

@andy-kimball
Copy link
Contributor

Reminder to make sure to update the merge target to cloud-20 rather than main before you merge. You can do that by clicking on main at the top of the page, e.g. "fantapop wants to merge 9 commits into main".

fantapop and others added 9 commits September 12, 2024 15:01
Use new plan types. Remove support for spend limits. Add support for
provisioned clusters. Adjust to use *int64 for usage limit fields rather
than int64.
Previously, the TF provider raised an error when the primary attribute was
specified in multiple regions, even when false in all but one region, e.g.:

  regions = [
    {
      name    = "eu-west-1"
      primary = true
    },
    {
      name    = "eu-west2"
      primary = false
    },
    {
      name    = "ap-south-1"
      primary = false
    },
  ]

This PR fixes that by adding some custom validation logic rather than using
the built-in config validators.

Fixes: CC-27160
Make the "plan" attribute on the "cluster" resource writable so that it
can be set by users who intend to upgrade/downgrade the plan. Keep the
attribute as computed so that the system will set the value if it is not
provided by the user.

Release note: Support upgrade of plans via changes to the "plan" attribute
on the "cluster" resource.
Rename the `provisioned_capacity` field to `provisioned_vcpus` and update all
tests and examples to use the vCPUs unit rather than request units by dividing
by 500. This is part of the overall migration to vCPUs for Cloud 2.0.
Add tests for downgrading from the STANDARD plan to the BASIC plan.
Previously, the Plan field was not passed to the CreateCluster API, even if
it was explicitly set by the user. This prevented the server from validating
the cluster configuration. For example, the server was not able to return
an error when Plan=BASIC and provisioned_vcpus are set. The fix is to pass
the Plan field to CreateCluster if the user explicitly sets it.
@fantapop fantapop changed the base branch from main to cloud-20 September 13, 2024 17:39
@fantapop fantapop merged commit 19f35b7 into cloud-20 Sep 13, 2024
4 checks passed
@fantapop fantapop deleted the fantapop/cloud-20-take-2 branch September 13, 2024 17:41
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.

2 participants