Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for PR followers and do not help prioritize the request
Description
It's an update of PR #466 which was reported as a bug instead of a feature.
This PR add a raw section to the VM schema, and mutualize common code parts with the template resource.
Some checks are added for the virtual machine to avoid defining sections like os, graphics, raw etc. via template_section.
There's also a bit of refactoring to make the code a bit more easier to understand.
It seems I can't checks keys in vadition functions: template_section: ValidateFunc and ValidateDiagFunc are not yet supported on lists or sets
References
Close #464
New or Affected Resource(s)
opennebula_virtual_machine
opennebula_template
Checklist
[ ] I have created an issue and I have mentioned it in References
[ ] My code follows the style guidelines of this project (use go fmt)
[ ] My changes generate no new warnings or errors
[ ] I have updated the unit tests and they pass succesfuly
[ ] I have commented my code, particularly in hard-to-understand areas
Community Note
Description
It's an update of PR #466 which was reported as a bug instead of a feature.
This PR add a
raw
section to the VM schema, and mutualize common code parts with the template resource. Some checks are added for the virtual machine to avoid defining sections likeos
,graphics
,raw
etc. via template_section. There's also a bit of refactoring to make the code a bit more easier to understand.It seems I can't checks keys in vadition functions:
template_section
:ValidateFunc
andValidateDiagFunc
are not yet supported on lists or setsReferences
Close #464
New or Affected Resource(s)
Checklist
References
go fmt
)