-
Notifications
You must be signed in to change notification settings - Fork 162
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
support updating backup_strategy in opengauss #823
Conversation
@Jason-Zhang9309 could you add the change into acc test? thanks |
15fefb8
to
92d6df1
Compare
Sure. It has been added. |
@@ -92,7 +92,7 @@ The following arguments are supported: | |||
* `datastore` - (Optional, List, ForceNew) Specifies the datastore information. Structure is documented below. | |||
Changing this parameter will create a new resource. | |||
|
|||
* `backup_strategy` - (Optional, List, ForceNew) Specifies the advanced backup policy. Structure is documented below. | |||
* `backup_strategy` - (Optional, List) Specifies the advanced backup policy. Structure is documented below. | |||
Changing this parameter will create a new resource. |
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.
This line should also be deprecated.
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.
fixed
updateOpts.KeepDays = &keep_days | ||
updateOpts.StartTime = rawMap["start_time"].(string) | ||
// Fixed to "1,2,3,4,5,6,7" | ||
updateOpts.Period = "1,2,3,4,5,6,7" | ||
// Fixed to "30" | ||
updateOpts.DifferentialPeriod = "30" |
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.
we can use a more graceful way, like:
updateOpts := backups.UpdateOpts {
....
}
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.
fixed
92d6df1
to
70bcde4
Compare
70bcde4
to
18aee15
Compare
New Test result: make testacc TEST='./huaweicloud' TESTARGS='-run TestAccOpenGaussInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud -v -run TestAccOpenGaussInstance_basic -timeout 360m -parallel 4
=== RUN TestAccOpenGaussInstance_basic
=== PAUSE TestAccOpenGaussInstance_basic
=== CONT TestAccOpenGaussInstance_basic
--- PASS: TestAccOpenGaussInstance_basic (1234.67s)
PASS
ok github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud 1234.714s |
support updating backup_strategy in opengauss
Test result: