-
Notifications
You must be signed in to change notification settings - Fork 2.1k
BigTable - NodeScalingFactor Force New BugFix #15112
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
BigTable - NodeScalingFactor Force New BugFix #15112
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @ScottSuarez, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
@ScottSuarez This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
ScottSuarez
left a comment
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.
Seems reasonable. Small ask on comment revision.
mmv1/third_party/terraform/services/bigtable/resource_bigtable_instance.go
Show resolved
Hide resolved
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_bigtable_instance" "primary" {
cluster {
node_scaling_factor = # value needed
}
}
|
Non-exercised tests🔴 Tests were added that are skipped in VCR:
Tests analyticsTotal tests: 63 Click here to see the affected service packages
🟢 All tests passed! View the build log |
|
not blocking on the deletion ask as it's not relevant to current change |
23a2acd
Allow new clusters to be added without forcing new instance
Following Resource is effected:
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.
Context:
Related Github Issue: hashicorp/terraform-provider-google#23564
TLDR; When adding a new cluster to an existing bigtable instance a forced recreate is required due to the
forceNewattribute onnode_scaling_factor. This doesn't match the API / Console functionality where adding a new cluster requires no recreate.This PR removes the unconditional
forceNewattribute onnode_scaling_factorand instead adds to the CustomizeDiff to check if an existing cluster'snode_scaling_factorhas changed or not. If yes; require recreate. If no; don't require recreate.Testing:
I've added two new test cases.
node_scaling_factorand fails whendeletion_protectionistrueI've run these test in local env, sample logs below
Sorry for not opening as draft!