-
Notifications
You must be signed in to change notification settings - Fork 100
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
resource_volume : set topology_request on read #342
resource_volume : set topology_request on read #342
Conversation
6865a3f
to
e3f00bd
Compare
Thanks for the PR @the-nando!
As noted in the docs and in the comment in the code (though the URL is broken, so we need to fix that), But the If it does complain, then I think we may need to add it to the schema but as computed so users don't set it. |
After review this PR I realized that this may be a good time to clean-up the mess around the volume resources since we're planning a major release with some breaking changes, so I opened #344 to do that. I could apply these changes to that PR (plus in the new resources), or you can rebase and work off that branch. Let me know what would work best for you. |
Looking at it again, #344 was already big and convoluted enough that adding more changes to it would make it even more confusing 😅 So I think I will rebase your branch and keep this PR up for this specific bug fix. |
Signed-off-by: The Nando <89834752+the-nando@users.noreply.github.com>
e3f00bd
to
24b8b4b
Compare
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've updated the topology request flattening function to also read preferred
and Terraform didn't seem to complain about it, so I didn't have to update the schema. I also noticed that ForceNew
didn't work unless it was set in all levels of the schema, so I addedthat as well.
Lastly I rebased your branch to apply the fix to the new nomad_csi_volume
and nomad_csi_volume_request
resources, so i think we're all good here.
Free to reach out if you notice a problem with these changes.
Thanks again for the PR!
Fixes: #338
The MR covers only
required
topology_request as that's what's implemented in the schema for this resource. Should it be extended to account also forpreferred
? According the the Volume Specification they are both supported.