refactor: remove using resourceName to determine is vGPU device (#741) (#743)

(cherry picked from commit 5aea476f645d201afb26e39b7be7f7a8049c9925)

Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot] 2026-03-18 17:16:28 +08:00 committed by GitHub
parent dde58269d5
commit 0441c1f6e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ export default class PCIDevice extends SteveModel {
return false;
}
return !!this.metadata?.labels?.[HCI_ANNOTATIONS.PARENT_SRIOV_GPU] || this.status?.resourceName.includes('nvidia.com');
return !!this.metadata?.labels?.[HCI_ANNOTATIONS.PARENT_SRIOV_GPU];
}
get canYaml() {