-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
sqlvm upgrade include new features #15945
Conversation
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.
Thanks for the pr @tikicoder - i've left some minor comments about schema inline. in addtion to this we'll need to add these to a test. once thats done this should be good to merge! thanks
internal/services/mssql/helper/sql_virtual_machine_storage_settings.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/helper/sql_virtual_machine_storage_settings.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/helper/sql_virtual_machine_storage_settings.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/helper/sql_virtual_machine_storage_settings.go
Outdated
Show resolved
Hide resolved
…tings.go Co-authored-by: kt <kt@katbyte.me>
…tings.go Co-authored-by: kt <kt@katbyte.me>
…tings.go Co-authored-by: kt <kt@katbyte.me>
…tings.go Co-authored-by: kt <kt@katbyte.me>
Co-authored-by: kt <kt@katbyte.me>
@katbyte I have accepted all the changes. |
Hi @tikicoder thanks for the pr! I found there seems to be a missing update of the |
@myc2h6o can you verify the updates and I think I have updated the test to at least a couple of the new settings. |
return &sqlvirtualmachine.SQLTempDbSettings{ | ||
Luns: expandSqlVirtualMachineStorageSettingsLuns(dataStorageSettings["luns"].([]interface{})), | ||
DefaultFilePath: utils.String(dataStorageSettings["default_file_path"].(string)), | ||
luns: expandSqlVirtualMachineStorageSettingsLuns(tempDbSettings["luns"].([]interface{})), | ||
data_file_count: utils.Int32(int32(tempDbSettings.Get("data_file_count").(int))), | ||
data_file_size_mb: utils.Int32(int32(tempDbSettings.Get("data_file_size_mb").(int))), | ||
data_file_growth_in_mb: utils.Int32(int32(tempDbSettings.Get("data_file_growth_in_mb").(int))), | ||
default_file_path: utils.String(tempDbSettings["default_file_path"].(string)), | ||
log_file_size_mb: utils.Int32(int32(tempDbSettings.Get("log_file_size_mb").(int))), | ||
log_file_growth_mb: utils.Int32(int32(tempDbSettings.Get("log_file_growth_mb").(int))) |
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.
field name of SQLTempDbSettings needs to be corrected, e.g. data_file_count
->DataFileCount
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.
Ok this should be resolved
@@ -882,12 +894,32 @@ func flattenSqlVirtualMachineTempDbSettings(input *sqlvirtualmachine.SQLTempDbSe | |||
} | |||
attrs := make(map[string]interface{}) | |||
|
|||
if input.Luns != nil { | |||
attrs["luns"] = *input.Luns | |||
if input.luns != nil { |
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.
Same here, field name of SQLTempDbSettings needs to be corrected. e.g. in Terraform the attribute name is luns
and in the sdk struct its Luns
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.
Ok this should be resolved
added new test
removed extra space
@katbyte can you approve running the workflows. This is my first contribution to the repo. |
Hi @tikicoder thanks for the update. the workflow seems to fail due to build issue. |
@myc2h6o Thanks I will check it out. |
I have pulled in the latest changes. |
@tikicoder thanks for the update and sorry for the late response. There are some build errors due to the sdk migration. I've opened tikicoder#3 to resolve them. Could you take a look there? |
Hey @tikicoder, thanks for getting the bulk of this work done. I went ahead and fixed it up in #18923 and that'll go out in the next release! |
@mbfrahry Thanks for taking it home, work has me swamped. Thanks again. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This builds off the PR of #15835
This adds the newer functionality from the new version of the API