You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix permadiff when edition field is added to configuration of a google_sql_database_instance resource (#9198) (#16215)
* Suppress diff on `google_sql_database_instance`'s `edition` field when state contains `""` and config contains `"ENTERPRISE"`
* Remove `DiffSuppressFunc`, add flattener and expander to handle conversion of `""` to `"ENTERPRISE"`
* Remove duplicate import
* Set default value of `edition` to `"ENTERPRISE"`
* Remove expander, add state upgrader
* Add acceptance test step that provisions an instance without `edition` set
* Update tests to assert the value in state matches the edition used, including when edition is not set in config
* Remove state upgrader
[upstream:241a15cb0ed6ae99c3290825051f168deda648fd]
Signed-off-by: Modular Magician <[email protected]>
sql: Fixed a bug where adding the `edition` field to a `google_sql_database_instance` resource that already existed and used ENTERPRISE edition resulted in a permant diff in plans
0 commit comments