-
Notifications
You must be signed in to change notification settings - Fork 12
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
Merges the contents of the long running cloud-20 branch into main #238
Conversation
062cc85
to
8ddf2c4
Compare
8ddf2c4
to
4b47f49
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
9ac1bb1
to
7d16bc7
Compare
This update includes all the cloud 2.0 changes.
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_virtual_cpus` 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_virtual_cpus are set. The fix is to pass the Plan field to CreateCluster if the user explicitly sets it.
upgrade_type is now added for BASIC and STANDARD clusters. It can be used to dictate how the cluster handles major version upgrades. Valid values for upgrade_type are AUTOMATIC and MANUAL. BASIC clusters support only AUTOMATIC upgrades.
7d16bc7
to
8542d8f
Compare
There were 2 errors during the acceptance test runs. Both of which seem unrelated to this branch so I'm going to merge it down. It has now been rebased to use the tagged version of the For posterity, the errors were:
and === NAME TestAccMetricExportPrometheusConfigResource
|
This branch contains all of the cloud 2.0 commits which we'll now merge back into main. Updating to the latest SDK also caused a merge conflict due to the list minute decision to rename provisioned_vcpus to provisioned_virtual_cpus. That change was rebased into each of the commits in this list.
Additionally there is a commit on top to tag the provider release to 1.8.0.
Commit checklist