Skip to content

feat: remove old format pci device name checking#889

Open
Yu-Jack wants to merge 1 commit into
harvester:mainfrom
Yu-Jack:HARV-6724
Open

feat: remove old format pci device name checking#889
Yu-Jack wants to merge 1 commit into
harvester:mainfrom
Yu-Jack:HARV-6724

Conversation

@Yu-Jack
Copy link
Copy Markdown
Collaborator

@Yu-Jack Yu-Jack commented May 27, 2026

when implementing the first version pci device passthrough, we didn't have our own device plugin, then resource name was changed after upgrade.

Right now, we already have our own device plugin, which we can control resource name by our ourselves. So, we can remove old mechanism.

Summary

PR Checklists

  • Are backend engineers aware of UI changes ?

Related Issue

backend: harvester/pcidevices#191
original issue: harvester/harvester#6724

Test screenshot or video

Before:

image

After:

image

@Yu-Jack Yu-Jack self-assigned this May 27, 2026
@github-actions github-actions Bot requested review from a110605 and houhoucoop May 27, 2026 07:49
@Yu-Jack Yu-Jack marked this pull request as ready for review May 27, 2026 10:56
Copilot AI review requested due to automatic review settings May 27, 2026 10:56
when implementing the first version pci device passthrough,
we didn't have our own device plugin, then resource name was changed
after upgrade.

Right now, we already have our own device plugin, which we can control
resource name by our ourselves. So, we can remove old mechanism.

Signed-off-by: Jack Yu <jack.yu@suse.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the legacy PCI device naming convention check from the VM PCI devices editor, since Harvester now has its own device plugin that controls resource names directly. The deprecated warning UI and associated translations are removed, and the template is simplified accordingly.

Changes:

  • Drop oldFormatDevices state, computed HTML helper, and the related warning Banner from VirtualMachinePciDevices/index.vue.
  • Simplify the mounted hook to always populate selectedDevices without the old-format branch.
  • Remove the harvester.pci.oldFormatDevices translation block from en-us.yaml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/index.vue Removes old-format device detection logic, state, computed, and Banner; restructures template.
pkg/harvester/l10n/en-us.yaml Removes the now-unused oldFormatDevices translation strings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants