-
Notifications
You must be signed in to change notification settings - Fork 14
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
added filesystem snapshot datasource #127
base: main
Are you sure you want to change the base?
Conversation
run e2e test HostGroupDs |
run e2e test HostGroupDs |
run e2e test FileSystemSnapshotDs |
Optional: true, | ||
Validators: []validator.String{ | ||
stringvalidator.LengthAtLeast(1), | ||
stringvalidator.ConflictsWith(path.MatchRoot("id"), path.MatchRoot("name")), |
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.
I think check is not needed since it already added to other 2 attributes
}, | ||
}, | ||
"filesystems": schema.ListNestedAttribute{ | ||
Description: "List of File System.", |
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.
List of file systems
we can added the latest commit in go.mod |
run e2e test FileSystemSnapshotDs |
|
||
This datasource is used to query the existing File System Snapshot from PowerStore array. The information fetched from this datasource can be used for getting the details for further processing in resource block. | ||
|
||
> **Note:** Only one of `name` or `id` or `filesystem_id` can be provided at a time. |
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 description seems outdated. Same in file_system daatasource.
} | ||
|
||
data "powerstore_filesystem_snapshot" "test1" { | ||
name = resource.powerstore_filesystem_snapshot.test.name |
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.
Datasource examples are not given with resource prereqs since users will probably never write any code like this. Datasource examples can have datasource prereqs (eg. filesystem datasource prereq for filesystem_snapshot daatsource).
Only resource examples use resource or datasource prereqs, covering probable common scenarios.
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.
Also, better give an example with nas_server_id
Description
A few sentences describing the overall goals of the pull request's commits.
File System Snapshot Datasource
Test Run
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration