-
Notifications
You must be signed in to change notification settings - Fork 666
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
Atracker v2 metadata backup #3887
Atracker v2 metadata backup #3887
Conversation
go.mod
Outdated
@@ -22,7 +22,7 @@ require ( | |||
github.com/IBM/ibm-hpcs-uko-sdk v0.0.4 | |||
github.com/IBM/keyprotect-go-client v0.7.0 | |||
github.com/IBM/networking-go-sdk v0.30.0 | |||
github.com/IBM/platform-services-go-sdk v0.26.1 | |||
github.com/IBM/platform-services-go-sdk v0.26.2-0.20220627211559-4da3e42ead84 |
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.
Will be updated once the new github.com/IBM/platform-services-go-sdk
releases
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.
Now updated to v0.28.1
e07c2f7
to
17b24e9
Compare
…der-ibm into atracker-v2-metadata-backup
// Description: "Provide a back up region to store meta data.", | ||
// }, | ||
"metadata_region_backup": { | ||
Type: schema.TypeString, |
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.
if user doesn't provide metadata_region_backup will we have any default value?
In Read we are setting back
d.Set("metadata_region_backup", settings.MetadataRegionBackup)
what value we get?
if we have some value we should mark it as both optional and computed
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.
There is no default value for this, it is expected to return ""
if nothing has been set.
@@ -83,6 +83,7 @@ func testAccCheckIBMAtrackerSettingsConfig(metadataRegionPrimary string, private | |||
|
|||
resource "ibm_atracker_settings" "atracker_settings" { | |||
metadata_region_primary = "%s" | |||
metadata_region_backup = "us-east" |
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.
can we add seperate testcase to handle this optional variable
…der-ibm into atracker-v2-metadata-backup
* initial commit for metadata backup * updated test case * Adds extra tests, fixes validator Co-authored-by: Van Chau Bui <van.bui@ibm.com>
* initial commit for metadata backup * updated test case * Adds extra tests, fixes validator Co-authored-by: Van Chau Bui <van.bui@ibm.com>
What has been done?
metadata_region_backup
field for atracker v2 settingsCommunity Note
Relates OR Closes #0000
Output from acceptance testing: