Skip to content

VEP 280: Expose Instancetype Resources in VirtualMachine Status#281

Open
lyarwood wants to merge 1 commit intokubevirt:mainfrom
lyarwood:vep-278-instancetype-status-resources
Open

VEP 280: Expose Instancetype Resources in VirtualMachine Status#281
lyarwood wants to merge 1 commit intokubevirt:mainfrom
lyarwood:vep-278-instancetype-status-resources

Conversation

@lyarwood
Copy link
Copy Markdown
Member

@lyarwood lyarwood commented Apr 20, 2026

VEP Metadata

Tracking issue: #280
SIG label: /sig compute

What this PR does

Introduces VEP 280, proposing the addition of a resources field to vm.status.instancetypeRef that exposes the resolved CPU topology (cores, sockets, threads) and guest memory from a referenced instancetype.

This allows users and tooling to see the guest-visible resources provided by an instancetype directly in the VirtualMachine status without needing to start the VM, fetch the instancetype object, or call expand-spec.

Implementation PR: kubevirt/kubevirt#16130

Special notes for your reviewer

This is a read-only status field addition with no behavioral changes, so no feature gate is proposed.

@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Apr 20, 2026
@kubevirt-bot kubevirt-bot requested review from vladikr and xpivarc April 20, 2026 13:08
@kubevirt-bot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign vladikr for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@lyarwood lyarwood changed the title VEP 278: Expose Instancetype Resources in VirtualMachine Status VEP 280: Expose Instancetype Resources in VirtualMachine Status Apr 20, 2026
@lyarwood lyarwood moved this to Proposed for consideration in KubeVirt 1.9 Enhancements Tracking Apr 20, 2026
@0xFelix
Copy link
Copy Markdown
Member

0xFelix commented Apr 20, 2026

/cc

Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md Outdated
Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md
Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md Outdated
Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md
Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md Outdated
Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md Outdated
Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md Outdated
Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md
Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md Outdated
Comment thread veps/sig-compute/278-instancetype-status-resources/vep.md Outdated
@lyarwood lyarwood force-pushed the vep-278-instancetype-status-resources branch from f8f2703 to 5ac223d Compare April 24, 2026 08:13
This adds a new VEP proposing the addition of a `resources` field to
`vm.status.instancetypeRef` that exposes the resolved CPU topology
(cores, sockets, threads) and guest memory from a referenced
instancetype.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
@lyarwood lyarwood force-pushed the vep-278-instancetype-status-resources branch from 5ac223d to 3db6ffa Compare April 24, 2026 08:17
Copy link
Copy Markdown
Member

@0xFelix 0xFelix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last question: Did you explore the use of expand-spec, is it absolutely no option?


```yaml
# Before: u1.medium (1 socket, 4Gi)
# After: u1.large (2 sockets, 8Gi)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instancetypes alone do not provide sockets, they provide vCPUs?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default exposed as sockets without a provided preference.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has DCO signed all their commits. sig/compute size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants