-
Notifications
You must be signed in to change notification settings - Fork 915
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
OVF package enhancements #3640
Merged
Merged
OVF package enhancements #3640
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akutz
force-pushed
the
feature/ovf-to-configspec
branch
from
December 5, 2024 16:16
52c5643
to
c3b2699
Compare
This patch updates the OVF parser to conform to the DMTF spec for OVF content. This includes: * support for VirtualSystemCollection * a single OperatingSystem section in VirtualSystem * removing the roll-up sections at the root of the Envelope that belong only under a VirtualSystem or VirtualSystemCollection BREAKING: Users of the `ovf` package will need to update their sources to conform to the changes from this patch. It should be a fairly simple change. Signed-off-by: akutz <[email protected]>
This patch adds support to the OVF parser for an enum used to define the CIM ResourceType. BREAKING: Users of the `ovf` package may need to cast ResourceType to a uint16 depending on how they have used the value. Signed-off-by: akutz <[email protected]>
akutz
force-pushed
the
feature/ovf-to-configspec
branch
3 times, most recently
from
December 5, 2024 17:11
15122e3
to
8a94715
Compare
akutz
force-pushed
the
feature/ovf-to-configspec
branch
2 times, most recently
from
December 5, 2024 17:41
aab302e
to
9800cf9
Compare
dougm
previously approved these changes
Dec 5, 2024
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.
Wow this is great, thanks @akutz !
akutz
force-pushed
the
feature/ovf-to-configspec
branch
2 times, most recently
from
December 5, 2024 19:20
f7b18ec
to
b02268b
Compare
dougm
previously approved these changes
Dec 5, 2024
This patch provides a utility function for transforming an OVF envelop into a ConfigSpec. Signed-off-by: akutz <[email protected]>
akutz
force-pushed
the
feature/ovf-to-configspec
branch
from
December 6, 2024 14:45
b02268b
to
495a820
Compare
dougm
approved these changes
Dec 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR includes several enhancements to the
ovf
package:The OVF parser now conform to the DMTF spec for OVF content. This includes:
ovf
package will need to update their sources to conform to the changes from this patch. It should be a fairly simple change.The OVF parser now supports an enum used to define the CIM ResourceType.
ovf
package may need to cast ResourceType to a uint16 depending on how they have used the value.It is now possible to transform an
ovf.Envelope
into atypes.VirtualMachineConfigSpec
Closes: #(issue-number)
How Has This Been Tested?
go test -v -count 1 ./ovf
Guidelines
Please read and follow the
CONTRIBUTION
guidelines of this project.