-
Notifications
You must be signed in to change notification settings - Fork 190
fixes #210: Issues with advanced_configuration section on mongodbatlas_cluster #238
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
fixes #210: Issues with advanced_configuration section on mongodbatlas_cluster #238
Conversation
Overall I think this is good - the only thing I believe we need is to add clear guidance to users about what will happen like we did for 0.4.0. Since this is the 2nd time we've needed this I'd like to do what some other providers have done and also add a new page in our Terraform doc to list information about version changes (similar to the Guides section in https://www.terraform.io/docs/providers/azurerm/index.html, with a page called Upgrade Guide for 0.6.0). That probably makes sense for another PR to create the new menu item and page/content but we'll need it before we release. Also fyi (esp @shum before you review) - I built this tonight and ran through some options - data below. Overall it works well and as expected. As long as we explain the state migration, i.e. why advanced configs is now showing up in the plan and that a refresh w/ plan is needed I think we'll be good. Direct API: List Adv Config API call Run plan with new provider from PR #238 - Same as earlier state Make change in .tf M10 to M20, run plan ... Run plan without refresh: Run plan with refresh: Apply w/ refresh and now new state file is correct and no changes on the Atlas side when direct API call made: Oplog/BI Connector changes: Change oplog in UI -> Then set bi connector enabled in configuration and set 3 options: advanced_configuration { |
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.
See comment but as long as @shum and one DoU dev approves I'm good.
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!
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! great work :)
e7f52f9
to
a47d522
Compare
116ff0a
to
5bd9cd4
Compare
fixes #210 Issues with advanced_configuration section on mongodbatlas_cluster Opt2
This is option 2:
Based on some testing, research and some conversation with @marinsalinas and @PacoDw :
Since the migration process happens before a state change (on refresh or on apply) using the new binary. All the arguments of advanced_configuration are computed/optional meaning that these values will be retrieved from the API after state migration.
Link to any related issue(s):
closes: https://github.com/terraform-providers/terraform-provider-mongodbatlas/issues/210
Type of change:
Required Checklist:
Further comments