-
Notifications
You must be signed in to change notification settings - Fork 913
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
Add support for cpu + mem allocation to vm.change command #916
Conversation
4723e0e
to
2605fac
Compare
@embano1 added resource allocation flags to the |
func NewResourceAllocationFlag(cpu, mem *types.ResourceAllocationInfo) *ResourceAllocationFlag { | ||
return &ResourceAllocationFlag{cpu, mem} | ||
} | ||
|
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 is just smart.
if r.Reservation != nil { | ||
return | ||
} | ||
|
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.
do we care ExpandableReservation
here?
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.
Good catch. It seems ExpandableReservation
cannot be set to true
for the VM fields. I'll see about just excluding the {cpu,mem}.expandable
flags from the vm.change command.
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.
Yes please exclude, bc it´s a resource pool flag.
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.
ok done.
Refactored resource pool related flags and simulator so we can use the same logic for VirtualMachine resource allocation.
2605fac
to
a894020
Compare
@dougm thx a ton! |
Refactored resource pool related flags and simulator so we can use the same logic
for VirtualMachine resource allocation.