-
Notifications
You must be signed in to change notification settings - Fork 9
498 - docs - netapp-ontap_lun resource #516
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
base: integration/main
Are you sure you want to change the base?
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.
Pull Request Overview
This PR addresses Issue 498 by updating the documentation for the netapp-ontap_lun resource and introducing attribute validation that requires at least one of two attributes be provided.
- Updated attribute descriptions to provide clearer guidance on expected values.
- Added a configuration validator ensuring either the LUN path ("name") or the base name ("logical_unit") is set.
- Updated documentation examples and changelog to reflect these changes.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
internal/provider/storage/storage_lun_resource.go | Updated attribute descriptions and added a config validator for attribute validation. |
docs/resources/lun.md | Revised attribute documentation and example configuration to align with the new validation requirements. |
docs/data-sources/luns.md | Added the serial_number attribute to the read-only schema. |
docs/data-sources/lun.md | Added the serial_number attribute to the read-only schema. |
CHANGELOG.md | Updated changelog to document the docs update and attribute validation change. |
Comments suppressed due to low confidence (2)
internal/provider/storage/storage_lun_resource.go:164
- [nitpick] Consider expanding the doc comment for the ConfigValidators function to explain why at least one of 'name' or 'logical_unit' must be provided and how this validator impacts resource configuration.
// ConfigValidators validates entire resource configurations
internal/provider/storage/storage_lun_resource.go:83
- [nitpick] Consider updating this description to mention that this attribute is one of two options (the other being 'logical_unit') and that at least one of these must be provided, to reflect the logic in the config validator.
MarkdownDescription: "Path for the LUN you want to create or modify. Example of correct LUN path: /vol/vol1/lun1"
Issue 498