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 #232

Closed
wants to merge 9 commits into from
Closed

Conversation

fantapop
Copy link
Collaborator

@fantapop fantapop commented Sep 4, 2024

Commit checklist

  • Changelog
  • Doc gen (make generate)
  • Integration test(s)
  • Acceptance test(s)
  • Example(s)

fantapop and others added 8 commits September 3, 2024 17:38
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
Copy link
Collaborator Author

fantapop commented Sep 4, 2024

closing this one because the api doesn't include all the necessary bits yet for passing upgrade_type on create.

@fantapop fantapop closed this Sep 4, 2024
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